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: {
|
rowFilters: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: (uuid) => {
|
default: (uuid) => {
|
||||||
return JSON.stringify([
|
return [
|
||||||
{field: 'batch_uuid', op: 'eq', value: uuid},
|
{field: 'batch_uuid', op: 'eq', value: uuid},
|
||||||
{field: 'removed', op: 'eq', value: false},
|
{field: 'removed', op: 'eq', value: false},
|
||||||
])
|
]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
rowOrderBy: {
|
rowOrderBy: {
|
||||||
|
@ -538,7 +538,7 @@ export default {
|
||||||
|
|
||||||
fetchRows(uuid) {
|
fetchRows(uuid) {
|
||||||
let params = {
|
let params = {
|
||||||
filters: this.rowFilters(uuid),
|
filters: JSON.stringify(this.rowFilters(uuid)),
|
||||||
orderBy: this.rowOrderBy,
|
orderBy: this.rowOrderBy,
|
||||||
ascending: this.rowOrderAscending ? 1 : 0,
|
ascending: this.rowOrderAscending ? 1 : 0,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue