From 72256110a7bf718b1d02b09f6b05acf98aa1e0d9 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 12 Feb 2024 02:55:16 +0200 Subject: [PATCH] Unbreak current chat rename --- public/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 885f8a618..024dfbecd 100644 --- a/public/script.js +++ b/public/script.js @@ -8456,7 +8456,7 @@ jQuery(async function () { throw new Error('Unsuccessful request.'); } - const data = response.json(); + const data = await response.json(); if (data.error) { throw new Error('Server returned an error.'); @@ -8468,6 +8468,7 @@ jQuery(async function () { else { if (characters[this_chid].chat == old_filename) { characters[this_chid].chat = newName; + $('#selected_chat_pole').val(characters[this_chid].chat); await createOrEditCharacter(); } }