Merge pull request #11161 from Budibase/fix/empty-datasource-entities-check
Added presence check for the entities object when fetching tables
This commit is contained in:
commit
150877147f
|
@ -10,9 +10,8 @@ export const createTableSelectionStore = (integration, datasource) => {
|
|||
|
||||
datasources.getTableNames(datasource).then(tableNames => {
|
||||
tableNamesStore.set(tableNames)
|
||||
|
||||
selectedTableNamesStore.set(
|
||||
tableNames.filter(tableName => datasource.entities[tableName])
|
||||
tableNames.filter(tableName => datasource.entities?.[tableName])
|
||||
)
|
||||
|
||||
loadingStore.set(false)
|
||||
|
|
Loading…
Reference in New Issue