diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 6253c9df2..0fcbbbb48 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -85,7 +85,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 };