Added presence check for the entities object when fetching tables
This commit is contained in:
parent
2e1ad83943
commit
ca40d39d50
|
@ -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