Fix undefineds
This commit is contained in:
parent
88d4ebc725
commit
830ed0cda2
|
@ -217,7 +217,7 @@ export async function search(ctx: Ctx<SearchRowRequest, SearchRowResponse>) {
|
|||
await context.ensureSnippetContext(true)
|
||||
|
||||
let { query } = ctx.request.body
|
||||
if (!isPlainObject(query)) {
|
||||
if (query && !isPlainObject(query)) {
|
||||
const allTables = await sdk.tables.getAllTables()
|
||||
query = replaceTableNamesInFilters(tableId, query, allTables)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue