From 64ece1df909415226294bd6031e2b44bcf549f1b Mon Sep 17 00:00:00 2001 From: TheDevRyan <175502913+The-Dev-Ryan@users.noreply.github.com> Date: Sat, 18 Oct 2025 10:42:06 +0100 Subject: [PATCH] Fix remove login token modal callback (#7359) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Corrected the callback function for the ‘Remove Login Token’ modal to properly execute the token removal. The previous implementation incorrectly wrapped the callback in an arrow function returning another function, preventing the logic from running. --- views/default3.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/default3.handlebars b/views/default3.handlebars index ddf0cd10..3eeb8fae 100644 --- a/views/default3.handlebars +++ b/views/default3.handlebars @@ -14584,7 +14584,7 @@ x += addHtmlValue("Name", EscapeHtml(token.name)); x += addHtmlValue("Username", EscapeHtml(token.tokenUser)); setModalContent('xxAddAgent', "Remove Login Token", x); - showModal('xxAddAgentModal', 'idx_dlgOkButton', () => function (b, tokenUser) { meshserver.send({ action: 'loginTokens', remove: [tokenUser] }); }); + showModal('xxAddAgentModal', 'idx_dlgOkButton', function () { meshserver.send({ action: 'loginTokens', remove: [tokenUser] }); }); } function gotoMesh(meshid) {