Fix undefined
This commit is contained in:
parent
2381bbd80c
commit
fbadd55cbf
|
@ -118,7 +118,7 @@ export const enrichDatasources = (
|
||||||
|
|
||||||
const entities = Array.isArray(datasource.entities)
|
const entities = Array.isArray(datasource.entities)
|
||||||
? datasource.entities
|
? datasource.entities
|
||||||
: Object.values(datasource.entities)
|
: Object.values(datasource.entities || {})
|
||||||
const dsTables = entities.filter(
|
const dsTables = entities.filter(
|
||||||
table =>
|
table =>
|
||||||
!searchTerm ||
|
!searchTerm ||
|
||||||
|
|
Loading…
Reference in New Issue