Added optional chaining to account for datasource not having been initialised

This commit is contained in:
Dean 2024-07-05 09:22:51 +01:00
parent 5c41bf0fc0
commit c99bb2d712
1 changed files with 1 additions and 1 deletions

View File

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