Fixing a typing issue.

This commit is contained in:
mike12345567 2024-06-24 16:47:27 +01:00
parent c72f6b4c04
commit 79d99743f1
1 changed files with 8 additions and 4 deletions

View File

@ -250,12 +250,16 @@ export const buildQuery = (filter: SearchFilter[]) => {
query.equal = query.equal || {}
query.equal[field] = true
} else {
// query[queryOperator] = query[queryOperator] || {}
// query[queryOperator]![field] = value
query[queryOperator] = {
...query[queryOperator],
[field]: value,
}
}
} else {
// query[queryOperator] = query[queryOperator] || {}
// query[queryOperator]![field] = value
query[queryOperator] = {
...query[queryOperator],
[field]: value,
}
}
}
})