fix: where empty

This commit is contained in:
Alex Moreno 2024-07-04 13:17:58 +02:00
parent aec43cb1c5
commit 699f09cfcf
1 changed files with 3 additions and 1 deletions

View File

@ -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 };