mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
aff78e4958
commit
212bb68a66
1 changed files with 3 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue