From 977d80c10ea247ad106d8bb0a3fe6cb13869c212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 7 Nov 2024 10:50:28 -0500 Subject: [PATCH] fix: editor removal --- public/src/client/topic/manage-editors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/topic/manage-editors.js b/public/src/client/topic/manage-editors.js index 4d063bfa26..2d874f31ba 100644 --- a/public/src/client/topic/manage-editors.js +++ b/public/src/client/topic/manage-editors.js @@ -47,7 +47,7 @@ define('forum/topic/manage-editors', [ modal.on('click', 'button.remove-user-icon', function () { const el = $(this).parents('[data-uid]'); const uid = el.attr('data-uid'); - editors = editors.filter(e => String(e.uid) === String(uid)); + editors = editors.filter(e => String(e.uid) !== String(uid)); el.remove(); }); });