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:
deanhannigan 2023-07-07 11:40:56 +01:00 committed by GitHub
commit 150877147f
1 changed files with 1 additions and 2 deletions

View File

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