Fix issue with search fields in builder when not using a table

This commit is contained in:
Andrew Kingston 2022-01-20 13:37:33 +00:00
parent d3a4e34b3f
commit 9f180ca292
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
return base
}
const currentTable = $tables.list.find(table => table._id === ds.tableId)
return getFields(base, { allowLinks: currentTable.sql }).map(
return getFields(base, { allowLinks: currentTable?.sql }).map(
field => field.name
)
}