mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 03:33:47 +02:00
fix: datatable sorting issue
This commit is contained in:
@@ -66,10 +66,7 @@ export const useGameLogStore = defineStore('GameLog', () => {
|
||||
tableProps: {
|
||||
stripe: true,
|
||||
size: 'small',
|
||||
defaultSort: {
|
||||
prop: 'created_at',
|
||||
order: 'descending'
|
||||
},
|
||||
defaultSort: null,
|
||||
rowKey: (row) =>
|
||||
`${row.type}:${row.rowId ?? row.uid ?? row.displayName + row.location + row.time}:${row.created_at ?? ''}`
|
||||
},
|
||||
@@ -398,7 +395,10 @@ export const useGameLogStore = defineStore('GameLog', () => {
|
||||
if (!gameLogSearch(entry)) {
|
||||
return;
|
||||
}
|
||||
gameLogTable.value.data.push({ ...entry, uid: crypto.randomUUID() });
|
||||
gameLogTable.value.data.push({
|
||||
...entry,
|
||||
uid: crypto.randomUUID()
|
||||
});
|
||||
sweepGameLog();
|
||||
uiStore.notifyMenu('game-log');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user