Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: rename thread dialog shows previous thread (#5963)

Faisal Amir079759939aad
diff --git a/web-app/src/containers/ThreadList.tsx b/web-app/src/containers/ThreadList.tsx
index 2d0eebc20..106a7dfc6 100644
--- a/web-app/src/containers/ThreadList.tsx
+++ b/web-app/src/containers/ThreadList.tsx
@@ -158,9 +158,10 @@ const SortableItem = memo(({ thread }: { thread: Thread }) => {
)}
<Dialog
onOpenChange={(open) => {
- if (!open) {
- setOpenDropdown(false)
+ if (open) {
setTitle(plainTitleForRename || t('common:newThread'))
+ } else {
+ setOpenDropdown(false)
}
}}
>