mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fix: editor removal
This commit is contained in:
@@ -47,7 +47,7 @@ define('forum/topic/manage-editors', [
|
|||||||
modal.on('click', 'button.remove-user-icon', function () {
|
modal.on('click', 'button.remove-user-icon', function () {
|
||||||
const el = $(this).parents('[data-uid]');
|
const el = $(this).parents('[data-uid]');
|
||||||
const uid = el.attr('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();
|
el.remove();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user