mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
fix: use the moved chat's pinned state when a folder chat is dropped on Chats or Pinned (#31368)
This commit is contained in:
parent
710b9f1e2c
commit
e5b57540f6
1 changed files with 8 additions and 0 deletions
|
|
@ -1464,6 +1464,10 @@
|
|||
});
|
||||
|
||||
folderRegistry[chat.folder_id]?.setFolderItems();
|
||||
|
||||
if (res) {
|
||||
chat = res;
|
||||
}
|
||||
}
|
||||
|
||||
if (chat.pinned) {
|
||||
|
|
@ -1561,6 +1565,10 @@
|
|||
toast.error(`${error}`);
|
||||
return null;
|
||||
});
|
||||
|
||||
if (res) {
|
||||
chat = res;
|
||||
}
|
||||
}
|
||||
|
||||
if (!chat.pinned) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue