Added optional chaining to account for datasource not having been initialised
This commit is contained in:
parent
5c41bf0fc0
commit
c99bb2d712
|
@ -31,7 +31,7 @@
|
|||
if (
|
||||
tables.find(
|
||||
table =>
|
||||
table._id === datasource.tableId &&
|
||||
table._id === datasource?.tableId &&
|
||||
table.sourceId === DEFAULT_BB_DATASOURCE_ID
|
||||
) &&
|
||||
!schemaFields.some(field => field.name === "_id")
|
||||
|
|
Loading…
Reference in New Issue