Merge branch 'master' into bulk-remove-utility

This commit is contained in:
Michael Drury 2024-07-25 12:00:44 +01:00 committed by GitHub
commit db0ab81f62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -115,6 +115,7 @@
}) })
$: fields = bindings $: fields = bindings
.filter(x => arrayTypes.includes(x.fieldSchema?.type)) .filter(x => arrayTypes.includes(x.fieldSchema?.type))
.filter(x => x.fieldSchema?.tableId != null)
.map(binding => { .map(binding => {
const { providerId, readableBinding, runtimeBinding } = binding const { providerId, readableBinding, runtimeBinding } = binding
const { name, type, tableId } = binding.fieldSchema const { name, type, tableId } = binding.fieldSchema

View File

@ -555,7 +555,7 @@ export const runQuery = (docs: Record<string, any>[], query: SearchFilters) => {
if (Array.isArray(docValue)) { if (Array.isArray(docValue)) {
return docValue.length === 0 return docValue.length === 0
} }
if (typeof docValue === "object") { if (docValue && typeof docValue === "object") {
return Object.keys(docValue).length === 0 return Object.keys(docValue).length === 0
} }
return docValue == null return docValue == null