fix: refs #8197 mapKey
gitea/salix-front/pipeline/pr-test This commit looks good Details

This commit is contained in:
Alex Moreno 2025-01-07 07:15:40 +01:00
parent 940e67b963
commit d23e077af0
2 changed files with 1 additions and 2 deletions

View File

@ -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"

View File

@ -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);