Skip to content

Commit

Permalink
Merge pull request #164 from nasa-petal/deleted-thread-bug
Browse files Browse the repository at this point in the history
Deleted Threads Switching Bug
  • Loading branch information
bruffridge authored Jun 26, 2024
2 parents 885ffe7 + bae162e commit 9373fcf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@
return;
}
if (newActiveThread.id !== thread.id) {
await threadUtils.setActiveThread(null, newActiveThread.id);
threads = await threadUtils.getThreads();
}
if (newActiveThread.id === activeThread.id) {
loading = false;
return;
}
activeThread = newActiveThread;
activeAsst = asst;
}
Expand Down

0 comments on commit 9373fcf

Please sign in to comment.