From 5a3de93734a1a7534f0d425f57315bf58e9d7203 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 9 Apr 2020 10:55:47 +0200 Subject: [PATCH] fix redirect issues when refreshing page --- .../src/components/nav/DatabasesList.svelte | 7 ------ .../database/[selectedDatabase]/index.svelte | 2 +- .../backend/database/index.svelte | 22 +++++++++++++++++++ 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/packages/builder/src/components/nav/DatabasesList.svelte b/packages/builder/src/components/nav/DatabasesList.svelte index 7f16e99122..b24a0c2d9a 100644 --- a/packages/builder/src/components/nav/DatabasesList.svelte +++ b/packages/builder/src/components/nav/DatabasesList.svelte @@ -24,13 +24,6 @@ return state }) } - - onMount(() => { - if ($store.appInstances.length > 0) { - selectDatabase($store.appInstances[0]) - $goto(`./database/${$backendUiStore.selectedDatabase.id}`) - } - })
diff --git a/packages/builder/src/pages/[application]/backend/database/[selectedDatabase]/index.svelte b/packages/builder/src/pages/[application]/backend/database/[selectedDatabase]/index.svelte index da59e18a84..dffd2932e1 100644 --- a/packages/builder/src/pages/[application]/backend/database/[selectedDatabase]/index.svelte +++ b/packages/builder/src/pages/[application]/backend/database/[selectedDatabase]/index.svelte @@ -44,7 +44,7 @@
{#if $backendUiStore.selectedDatabase.id} -{:else}Please select a database{/if} +{/if}