From d23e077af080e60dbbc0937c00028be198a3ebe8 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 7 Jan 2025 07:15:40 +0100 Subject: [PATCH] fix: refs #8197 mapKey --- src/components/common/VnDmsList.vue | 1 - src/composables/useArrayData.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/common/VnDmsList.vue b/src/components/common/VnDmsList.vue index 3a143cb52..ed3cadc6b 100644 --- a/src/components/common/VnDmsList.vue +++ b/src/components/common/VnDmsList.vue @@ -297,7 +297,6 @@ defineExpose({ ref="dmsRef" :data-key="$props.model" :url="$props.model" - map-key="dmsFk" :user-filter="dmsFilter" :order="['dmsFk DESC']" :auto-load="true" diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 720a1ec88..fd6e3a9b3 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -303,7 +303,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { for (const row of data) { const key = row[store.mapKey]; const val = { ...row, key }; - if (store.map.has(key)) { + if (key && store.map.has(key)) { const { position } = store.map.get(key); val.position = position; store.map.set(key, val);