Check options.fields are in the table.
This commit is contained in:
parent
6e660151bd
commit
975e348de5
|
@ -89,7 +89,7 @@ export async function search(
|
|||
if (options.query) {
|
||||
const visibleFields = (
|
||||
options.fields || Object.keys(table.schema)
|
||||
).filter(field => table.schema[field].visible !== false)
|
||||
).filter(field => table.schema[field]?.visible !== false)
|
||||
|
||||
const queryableFields = await getQueryableFields(table, visibleFields)
|
||||
options.query = removeInvalidFilters(options.query, queryableFields)
|
||||
|
|
Loading…
Reference in New Issue