1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

Merge pull request #11083 from Budibase/fix/initial_table_selection

Fix loading table selection
This commit is contained in:
Adria Navarro 2023-06-30 16:14:44 +01:00 committed by GitHub
commit dbe8e6a73d
2 changed files with 2 additions and 2 deletions

View file

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

View file

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