mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
fix: gamelog row key is not unique
This commit is contained in:
@@ -31,7 +31,8 @@ export const useFeedStore = defineStore('Feed', () => {
|
||||
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,
|
||||
@@ -189,7 +190,7 @@ export const useFeedStore = defineStore('Feed', () => {
|
||||
if (!feedSearch(feed)) {
|
||||
return;
|
||||
}
|
||||
feedTable.value.data.push(feed);
|
||||
feedTable.value.data.push({ ...feed, uid: crypto.randomUUID() });
|
||||
sweepFeed();
|
||||
UiStore.notifyMenu('feed');
|
||||
}
|
||||
|
||||
@@ -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() });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user