Skip to content

Commit 611f0c4

Browse files
committed
fix(frontend): fix wrong setThreadHistory call after zustand update
1 parent 0d850d3 commit 611f0c4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontend/src/components/LeftSidebar/ThreadHistory.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,10 @@ export function ThreadHistory() {
9292
);
9393

9494
if (allThreads) {
95-
setThreadHistory((prev) => ({
96-
...prev,
95+
setThreadHistory({
9796
pageInfo,
9897
threads: allThreads
99-
}));
98+
});
10099
}
101100
} catch (err) {
102101
setError(err instanceof Error ? err.message : 'Unknown error occurred');

0 commit comments

Comments
 (0)