mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-30 17:05:16 -05:00
fix: tab changes in a chat stop being saved once its tabs are back to how they were (#34539)
Once a change left a chat's tabs exactly as they were last saved, for example by opening a New File tab and closing it again, no later tab change in that chat was saved until the page was reloaded. Tabs opened, closed or rearranged after that were gone on the next visit. Every tab change is saved again now. Fixes #34538
This commit is contained in:
1 parent
ed3bacab50
commit
d8872ac07b
1 file changed
+1
-2
@@ -169,10 +169,9 @@ export async function flushChatView(entry: Entry): Promise<void> {
|
||||
} catch (error) {
|
||||
entry.error = `Layout changes not saved. ${String(error)}`;
|
||||
} finally {
|
||||
entry.write = undefined;
|
||||
notify();
|
||||
}
|
||||
})();
|
||||
})().finally(() => (entry.write = undefined));
|
||||
return entry.write;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user