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 617dd4c670
commit c2d7620a7a
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
return base return base
} }
const currentTable = $tables.list.find(table => table._id === ds.tableId) 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 field => field.name
) )
} }