From fea218a62fd07874c042ad0f4d8044259267a122 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 30 Jun 2023 11:43:24 +0100 Subject: [PATCH 1/2] Respect initial selection on FancyCheckboxGroup[ --- packages/bbui/src/FancyForm/FancyCheckboxGroup.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bbui/src/FancyForm/FancyCheckboxGroup.svelte b/packages/bbui/src/FancyForm/FancyCheckboxGroup.svelte index ca3a6d937a..b2e412ac24 100644 --- a/packages/bbui/src/FancyForm/FancyCheckboxGroup.svelte +++ b/packages/bbui/src/FancyForm/FancyCheckboxGroup.svelte @@ -8,7 +8,7 @@ export let showSelectAll = true export let selectAllText = "Select all" - let selectedBooleans = reset() + let selectedBooleans = options.map(x => selected.indexOf(x) > -1) const dispatch = createEventDispatcher() $: updateSelected(selectedBooleans) From d655e6cbe54ae642de3b89923054980ef635758e Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 30 Jun 2023 11:43:51 +0100 Subject: [PATCH 2/2] Populate selected tables --- .../Datasources/TableImportSelection/tableSelectionStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/backend/Datasources/TableImportSelection/tableSelectionStore.js b/packages/builder/src/components/backend/Datasources/TableImportSelection/tableSelectionStore.js index a361618897..46238e333c 100644 --- a/packages/builder/src/components/backend/Datasources/TableImportSelection/tableSelectionStore.js +++ b/packages/builder/src/components/backend/Datasources/TableImportSelection/tableSelectionStore.js @@ -10,7 +10,7 @@ export const createTableSelectionStore = (integration, datasource) => { datasources.getTableNames(datasource).then(tableNames => { tableNamesStore.set(tableNames) - selectedTableNamesStore.set(tableNames) + selectedTableNamesStore.set(tableNames.filter(t => datasource.entities[t])) loadingStore.set(false) })