mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-15 22:11:17 +02:00
fix: crash on navigator unread update when backing out of a topic
This commit is contained in:
@@ -348,7 +348,7 @@ define('navigator', ['forum/pagination', 'components', 'hooks', 'alerts', 'trans
|
||||
}
|
||||
|
||||
async function updateUnreadIndicator(index) {
|
||||
if (ajaxify.data.postcount <= ajaxify.data.bookmarkThreshold) {
|
||||
if (!paginationBlockUnreadEl.length || ajaxify.data.postcount <= ajaxify.data.bookmarkThreshold) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user