fix: gamelog row key is not unique

This commit is contained in:
pa
2025-12-18 13:41:48 +09:00
committed by Natsumi
parent 277275f5ef
commit e4b7a36594
2 changed files with 6 additions and 4 deletions

View File

@@ -70,7 +70,8 @@ export const useGameLogStore = defineStore('GameLog', () => {
prop: 'created_at',
order: 'descending'
},
rowKey: (row) => `${row.type}:${row.rowId}:${row.created_at ?? ''}`
rowKey: (row) =>
`${row.type}:${row.rowId ?? row.uid}:${row.created_at ?? ''}`
},
pageSize: 20,
pageSizeLinked: true,
@@ -944,7 +945,7 @@ export const useGameLogStore = defineStore('GameLog', () => {
}
}
notificationStore.queueGameLogNoty(entry);
addGameLog(entry);
addGameLog({ ...entry, uid: crypto.randomUUID() });
}
}