From 1e04ead78027fb3e5b7c6804d50021a62d32bf3b Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 24 Oct 2024 15:11:58 +0200 Subject: [PATCH] perf: refs #8036 currentFilter --- 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 6b1d183f2..4e0cad9c9 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -87,10 +87,12 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { Object.assign(params, userParams); params.filter.skip = store.skip; - if (store.order && store.order.length) params.filter.order = store.order; + if (store?.order && typeof store?.order == 'string') store.order = [store.order]; + if (store.order && store.order.length) params.filter.order = [...store.order]; else delete params.filter.order; store.currentFilter = JSON.parse(JSON.stringify(params)); + delete store.currentFilter.filter.include; store.currentFilter.filter = JSON.stringify(store.currentFilter.filter); let exprFilter;