diff --git a/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js b/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js index 47ee1319c8..884b6a5741 100644 --- a/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js +++ b/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js @@ -44,8 +44,6 @@ export default ` if (selectedComponentStyle) document.head.removeChild(selectedComponentStyle) } catch(_) { } - console.log(data.selectedComponentType) - selectedComponentStyle = document.createElement('style'); document.head.appendChild(selectedComponentStyle) var selectedCss = '[data-bb-id="' + data.selectedComponentType + '-' + data.selectedComponentId + '"]' + '{border:2px solid #0055ff !important;}' diff --git a/packages/client/src/store/routes.js b/packages/client/src/store/routes.js index 4d6279485d..8ec70f36cf 100644 --- a/packages/client/src/store/routes.js +++ b/packages/client/src/store/routes.js @@ -21,8 +21,6 @@ const createRouteStore = () => { }) } const setRouteParams = routeParams => { - console.log("new route params: ") - console.log(routeParams) store.update(state => { state.routeParams = routeParams return state diff --git a/packages/client/src/store/screens.js b/packages/client/src/store/screens.js index 20408c4756..33eac0ab13 100644 --- a/packages/client/src/store/screens.js +++ b/packages/client/src/store/screens.js @@ -4,9 +4,10 @@ import { routeStore } from "./routes" const createScreenStore = () => { const screens = writable([]) const store = derived([screens, routeStore], ([$screens, $routeStore]) => { - const activeScreen = $screens.find( - screen => screen.route === $routeStore.activeRoute - ) + const activeScreen = + $screens.length === 1 + ? $screens[0] + : $screens.find(screen => screen.route === $routeStore.activeRoute) return { screens: $screens, activeScreen, diff --git a/packages/standard-components/src/Card.svelte b/packages/standard-components/src/Card.svelte index 63df22822a..01d14da07c 100644 --- a/packages/standard-components/src/Card.svelte +++ b/packages/standard-components/src/Card.svelte @@ -1,6 +1,9 @@ -