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;