diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 8fda4b15d..e5461c872 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -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 };