diff --git a/src/components/model-crud/ByjoveModelCrud.vue b/src/components/model-crud/ByjoveModelCrud.vue index 20f223f..6b3af32 100644 --- a/src/components/model-crud/ByjoveModelCrud.vue +++ b/src/components/model-crud/ByjoveModelCrud.vue @@ -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, }