From 8d279dd94ddee6aade5af6370d6815c5522c154b Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 18 Mar 2025 10:33:52 +0000 Subject: [PATCH] Fix saveChat positional argument migration --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index b68b2256a..d623793d7 100644 --- a/public/script.js +++ b/public/script.js @@ -6757,7 +6757,7 @@ export function saveChatDebounced() { * @returns {Promise} */ export async function saveChat({ chatName, withMetadata, mesId, force = false } = {}) { - if (arguments.length > 1 && typeof arguments[0] !== 'object') { + if (arguments.length > 0 && typeof arguments[0] !== 'object') { console.trace('saveChat called with positional arguments. Please use an object instead.'); [chatName, withMetadata, mesId, force] = arguments; }