Wider check on fields == null.
This commit is contained in:
parent
aa738659ae
commit
8dd21e5592
|
@ -110,7 +110,7 @@ export const getQueryableFields = async (
|
|||
"_id", // Querying by _id is always allowed, even if it's never part of the schema
|
||||
]
|
||||
|
||||
if (fields === undefined) {
|
||||
if (fields == null) {
|
||||
fields = Object.keys(table.schema)
|
||||
}
|
||||
result.push(...(await extractTableFields(table, fields, [table._id!])))
|
||||
|
|
Loading…
Reference in New Issue