fix: editor removal

This commit is contained in:
Barış Soner Uşaklı
2024-11-07 10:50:28 -05:00
parent bbf66c243b
commit 977d80c10e

View File

@@ -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();
});
});