From 699f09cfcff954e047b7f2a59be5851a8b2a50d9 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 4 Jul 2024 13:17:58 +0200 Subject: [PATCH] fix: where empty --- src/composables/useArrayData.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 };