Added presence check for the entities object when fetching tables

This commit is contained in:
Dean 2023-07-07 11:21:40 +01:00
parent 2e1ad83943
commit ca40d39d50
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)