refac
This commit is contained in:
1 parent
517cd8d102
commit
55cb98ff56
3 files changed
+210
-211
No files matched your search
@@ -2977,12 +2977,13 @@
|
||||
const loaded = chat?.chat ?? {};
|
||||
if (equal(params, loaded.params ?? {}) && equal(chatFiles, loaded.files ?? [])) return;
|
||||
|
||||
const res = await updateChatById(localStorage.token, $chatId, { params, files: chatFiles }).catch(
|
||||
(err) => {
|
||||
console.error('[controls autosave]', err);
|
||||
return null;
|
||||
}
|
||||
);
|
||||
const res = await updateChatById(localStorage.token, $chatId, {
|
||||
params,
|
||||
files: chatFiles
|
||||
}).catch((err) => {
|
||||
console.error('[controls autosave]', err);
|
||||
return null;
|
||||
});
|
||||
// Refresh the dedupe baseline so a later revert still saves.
|
||||
if (res) chat = res;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user