From 41c048ed353138dbc1ce329ede4e6dcbe8b07147 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 16 Oct 2025 23:30:15 +0300 Subject: [PATCH] Fix formatting in messageEditCancel --- public/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index 6386a4b9d..54395809b 100644 --- a/public/script.js +++ b/public/script.js @@ -7284,8 +7284,7 @@ async function messageEditCancel(messageId = this_edit_mes_id) { // If this is the button then select it's parent. Otherwise, select by messageId. if (this?.classList?.contains('mes_edit_cancel')) { thisMesDiv = $(this).closest('.mes'); - } else - { + } else { thisMesDiv = chatElement.children().filter(`[mesid="${messageId}"]`); }