From 2c8345819de008f817521550ba4f39f069ca7c79 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 5 Aug 2022 11:08:32 +0100 Subject: [PATCH] Fix crash when deleting app when on the settings tab --- .../design/[screenId]/screens/_components/ScreenWizard.svelte | 1 - .../builder/portal/overview/_components/SettingsTab.svelte | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenWizard.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenWizard.svelte index 6485e7a13f..bf782adf39 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenWizard.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenWizard.svelte @@ -59,7 +59,6 @@ // Use the currently selected role if (!screenAccessRole) { - console.log("NO ROLE") return } screen.routing.roleId = screenAccessRole diff --git a/packages/builder/src/pages/builder/portal/overview/_components/SettingsTab.svelte b/packages/builder/src/pages/builder/portal/overview/_components/SettingsTab.svelte index 8efa5a81e4..fd74024fc4 100644 --- a/packages/builder/src/pages/builder/portal/overview/_components/SettingsTab.svelte +++ b/packages/builder/src/pages/builder/portal/overview/_components/SettingsTab.svelte @@ -21,7 +21,7 @@ $: updateAvailable = clientPackage.version !== $store.version $: appUrl = `${window.origin}/app${app?.url}` - $: appDeployed = app.status === AppStatus.DEPLOYED + $: appDeployed = app?.status === AppStatus.DEPLOYED