Merge pull request #11083 from Budibase/fix/initial_table_selection
Fix loading table selection
This commit is contained in:
commit
dbe8e6a73d
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue