From 58d029c5bb622ba8c0681448ffa721f76dab9c68 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 12 Jul 2024 13:03:49 +0200 Subject: [PATCH] fix(vnTable_order): default value --- src/composables/useArrayData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);