Keep row filters "raw" until encoding for actual request

so there is no need to use `JSON.stringify()` everywhere, keep that
part in just one place
This commit is contained in:
Lance Edgar 2023-12-20 11:48:09 -06:00
parent 0609fdebf7
commit 7bc9991be0

View file

@ -189,10 +189,10 @@ export default {
rowFilters: {
type: Function,
default: (uuid) => {
return JSON.stringify([
return [
{field: 'batch_uuid', op: 'eq', value: uuid},
{field: 'removed', op: 'eq', value: false},
])
]
},
},
rowOrderBy: {
@ -538,7 +538,7 @@ export default {
fetchRows(uuid) {
let params = {
filters: this.rowFilters(uuid),
filters: JSON.stringify(this.rowFilters(uuid)),
orderBy: this.rowOrderBy,
ascending: this.rowOrderAscending ? 1 : 0,
}