forked from verdnatura/salix-front
fix: where empty
This commit is contained in:
parent
aec43cb1c5
commit
699f09cfcf
|
@ -84,7 +84,9 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
|
|||
}
|
||||
|
||||
Object.assign(filter, store.userFilter, exprFilter);
|
||||
const where = Object.assign(filter?.where ?? {}, store.filter?.where ?? {});
|
||||
let where;
|
||||
if (filter?.where || store.filter?.where)
|
||||
where = Object.assign(filter?.where ?? {}, store.filter?.where ?? {});
|
||||
Object.assign(filter, store.filter);
|
||||
filter.where = where;
|
||||
const params = { filter };
|
||||
|
|
Loading…
Reference in New Issue