Skip to content

Commit

Permalink
Merge pull request #12091 from Budibase/fix/BUDI-7630-fix-datasource-…
Browse files Browse the repository at this point in the history
…deletion

Fix datasource deletion (when selected) causing builder crash
  • Loading branch information
mike12345567 authored Oct 18, 2023
2 parents bbda776 + a325e39 commit 3abb2fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@
</script>

{#key $params.datasourceId}
<slot />
{#if $datasources.selected}
<slot />
{/if}
{/key}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3abb2fe

Please sign in to comment.