refac
This commit is contained in:
1 parent
aff78e4958
commit
212bb68a66
1 file changed
+3
-4
@@ -291,7 +291,7 @@
|
|||||||
oldSelectedModelIds = structuredClone(selectedModelIds);
|
oldSelectedModelIds = structuredClone(selectedModelIds);
|
||||||
};
|
};
|
||||||
|
|
||||||
const resetInput = () => {
|
const resetInput = async () => {
|
||||||
selectedToolIds = [];
|
selectedToolIds = [];
|
||||||
selectedFilterIds = [];
|
selectedFilterIds = [];
|
||||||
pendingOAuthTools = [];
|
pendingOAuthTools = [];
|
||||||
@@ -300,7 +300,7 @@
|
|||||||
codeInterpreterEnabled = false;
|
codeInterpreterEnabled = false;
|
||||||
|
|
||||||
if (selectedModelIds.filter((id) => id).length > 0) {
|
if (selectedModelIds.filter((id) => id).length > 0) {
|
||||||
setDefaults();
|
await setDefaults();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1194,7 +1194,7 @@
|
|||||||
|
|
||||||
autoScroll = true;
|
autoScroll = true;
|
||||||
|
|
||||||
resetInput();
|
await resetInput();
|
||||||
await chatId.set('');
|
await chatId.set('');
|
||||||
await chatTitle.set('');
|
await chatTitle.set('');
|
||||||
|
|
||||||
@@ -2217,7 +2217,6 @@
|
|||||||
: undefined
|
: undefined
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
|
|
||||||
if ($temporaryChatEnabled) {
|
if ($temporaryChatEnabled) {
|
||||||
messages = [
|
messages = [
|
||||||
...messages,
|
...messages,
|
||||||
|
|||||||
Reference in new issue
Block a user