From bfc906a3469077b448df99163690b4d20b0afd3b Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 18 Oct 2024 13:48:10 +0200 Subject: [PATCH] fix: refs #8036 only add where when required --- src/composables/useArrayData.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index c55e08d74..6b1d183f2 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -103,7 +103,8 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { }); } - params.filter.where = { ...params.filter.where, ...exprFilter }; + if (params.filter.where || exprFilter) + params.filter.where = { ...params.filter.where, ...exprFilter }; params.filter = JSON.stringify(params.filter); store.isLoading = true;