From 35f0384b171db1ebdf1c7277a33062b6fc642062 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Thu, 11 Nov 2021 12:55:04 +0000 Subject: [PATCH] removing log --- .../design/NavigationPanel/NavigationSelectionModal.svelte | 4 ++-- .../components/design/NavigationPanel/ScreenNameModal.svelte | 3 +-- .../app/[application]/design/[assetType]/_layout.svelte | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/builder/src/components/design/NavigationPanel/NavigationSelectionModal.svelte b/packages/builder/src/components/design/NavigationPanel/NavigationSelectionModal.svelte index bed7028f6f..695638f83e 100644 --- a/packages/builder/src/components/design/NavigationPanel/NavigationSelectionModal.svelte +++ b/packages/builder/src/components/design/NavigationPanel/NavigationSelectionModal.svelte @@ -39,7 +39,7 @@ let route = screenName ? sanitizeUrl(`/${screenName}`) : draftScreen.routing.route - console.log(sanitizeUrl(`/${screenName}`)) + if (draftScreen) { if (!route) { routeError = "URL is required" @@ -50,7 +50,7 @@ routeError = "" } } - console.log(routeError) + if (routeError) return false draftScreen.routing.route = route diff --git a/packages/builder/src/components/design/NavigationPanel/ScreenNameModal.svelte b/packages/builder/src/components/design/NavigationPanel/ScreenNameModal.svelte index a5fe61dbc4..ff656001df 100644 --- a/packages/builder/src/components/design/NavigationPanel/ScreenNameModal.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ScreenNameModal.svelte @@ -4,12 +4,11 @@ export let modal export let navigationSelectionModal export let screenName - $: console.log(name) modal.show()} onConfirm={() => navigationSelectionModal.show()} diff --git a/packages/builder/src/pages/builder/app/[application]/design/[assetType]/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/design/[assetType]/_layout.svelte index 5f020aed9a..c61e5e09c7 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[assetType]/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[assetType]/_layout.svelte @@ -35,7 +35,7 @@ let screenNameModal let screenName = "" let selectedScreens = [] - $: console.log(screenName) + // Hydrate state from URL params $: hydrateStateFromURL($params, $leftover)