diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 3563e0dbd..8eaf72a06 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -175,7 +175,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { async function addOrder(field, direction = 'ASC') { const newOrder = field + ' ' + direction; - let order = store.order ?? []; + let order = store.order || []; if (typeof order == 'string') order = [order]; let index = order.findIndex((o) => o.split(' ')[0] === field);