mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 17:55:59 +02:00
don't crash if triggerEl is null
This commit is contained in:
@@ -47,7 +47,9 @@ define('notifications', [
|
||||
if (scrollToPostIndexIfOnPage(notifEl)) {
|
||||
ev.stopPropagation();
|
||||
ev.preventDefault();
|
||||
triggerEl.dropdown('toggle');
|
||||
if (triggerEl) {
|
||||
triggerEl.dropdown('toggle');
|
||||
}
|
||||
}
|
||||
|
||||
const unread = notifEl.hasClass('unread');
|
||||
|
||||
Reference in New Issue
Block a user