mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-26 23:44:48 -06:00
refac
This commit is contained in:
@@ -291,7 +291,7 @@
|
||||
oldSelectedModelIds = structuredClone(selectedModelIds);
|
||||
};
|
||||
|
||||
const resetInput = () => {
|
||||
const resetInput = async () => {
|
||||
selectedToolIds = [];
|
||||
selectedFilterIds = [];
|
||||
pendingOAuthTools = [];
|
||||
@@ -300,7 +300,7 @@
|
||||
codeInterpreterEnabled = false;
|
||||
|
||||
if (selectedModelIds.filter((id) => id).length > 0) {
|
||||
setDefaults();
|
||||
await setDefaults();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1194,7 +1194,7 @@
|
||||
|
||||
autoScroll = true;
|
||||
|
||||
resetInput();
|
||||
await resetInput();
|
||||
await chatId.set('');
|
||||
await chatTitle.set('');
|
||||
|
||||
@@ -2217,7 +2217,6 @@
|
||||
: undefined
|
||||
].filter(Boolean);
|
||||
|
||||
|
||||
if ($temporaryChatEnabled) {
|
||||
messages = [
|
||||
...messages,
|
||||
|
||||
Reference in New Issue
Block a user