Fixing a typing issue.
This commit is contained in:
parent
c72f6b4c04
commit
79d99743f1
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue