From 9f3e67ed1aaab3e254567341f2dfc2e64618243e Mon Sep 17 00:00:00 2001 From: Simon Cordt Date: Thu, 25 Sep 2025 04:25:10 +0200 Subject: [PATCH] feat: Make setHistorySort async to avoid race condition --- web/pqueue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pqueue.js b/web/pqueue.js index e7c8f66..093f9f4 100644 --- a/web/pqueue.js +++ b/web/pqueue.js @@ -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 || {};