diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/_layout.svelte index c9ceb1b657..b45fa78c40 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/_layout.svelte @@ -23,5 +23,7 @@ {#key $params.datasourceId} - + {#if $datasources.selected} + + {/if} {/key} diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte index 6ce9cf7921..090cffeb7e 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte @@ -16,8 +16,7 @@ let selectedPanel = null let panelOptions = [] - // datasources.selected can return null temporarily on datasource deletion - $: datasource = $datasources.selected || {} + $: datasource = $datasources.selected $: getOptions(datasource)