Skip to content

Node.js based forum software built for the modern web

fix: editor removal

Barış Soner Uşaklı977d80c10ea2
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();
});
});