Merge pull request #12091 from Budibase/fix/BUDI-7630-fix-datasource-deletion

Fix datasource deletion (when selected) causing builder crash
This commit is contained in:
Michael Drury 2023-10-18 10:23:54 +01:00 committed by GitHub
commit 3abb2fef04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -23,5 +23,7 @@
</script>
{#key $params.datasourceId}
<slot />
{#if $datasources.selected}
<slot />
{/if}
{/key}

View File

@ -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)