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:
commit
3abb2fef04
|
@ -23,5 +23,7 @@
|
|||
</script>
|
||||
|
||||
{#key $params.datasourceId}
|
||||
<slot />
|
||||
{#if $datasources.selected}
|
||||
<slot />
|
||||
{/if}
|
||||
{/key}
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue