feat: Make setHistorySort async to avoid race condition

This commit is contained in:
Simon Cordt
2025-09-25 04:25:10 +02:00
parent 99536010c3
commit 9f3e67ed1a
+1 -1
View File
@@ -1864,7 +1864,7 @@
}
},
setHistorySort(dir) {
async setHistorySort(dir) {
try {
if (!state.historyPaging) state.historyPaging = { isLoading: false, hasMore: true, nextCursor: null, params: { sort_by: 'id', sort_dir: 'desc', limit: 60 } };
const params = state.historyPaging.params || {};