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:
parent
0609fdebf7
commit
7bc9991be0
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue