fix: sorted-thread-not-stable (#5336)
This commit is contained in:
parent
06be778e98
commit
b30de3d1ae
@ -32,11 +32,6 @@ export const useThreads = create<ThreadState>()((set, get) => ({
|
||||
threads: {},
|
||||
searchIndex: null,
|
||||
setThreads: (threads) => {
|
||||
threads.forEach((thread) => {
|
||||
updateThread({
|
||||
...thread,
|
||||
})
|
||||
})
|
||||
const threadMap = threads.reduce(
|
||||
(acc: Record<string, Thread>, thread) => {
|
||||
acc[thread.id] = thread
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user