mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: if there is no bookmarkThreshold dont init unread indicator
This commit is contained in:
@@ -353,7 +353,8 @@ define('navigator', [
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function updateUnreadIndicator(index) {
|
async function updateUnreadIndicator(index) {
|
||||||
if (!paginationBlockUnreadEl.length || ajaxify.data.postcount <= ajaxify.data.bookmarkThreshold) {
|
const { bookmarkThreshold } = ajaxify.data;
|
||||||
|
if (!paginationBlockUnreadEl.length || ajaxify.data.postcount <= bookmarkThreshold || !bookmarkThreshold) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const currentBookmark = ajaxify.data.bookmark || storage.getItem('topic:' + ajaxify.data.tid + ':bookmark');
|
const currentBookmark = ajaxify.data.bookmark || storage.getItem('topic:' + ajaxify.data.tid + ':bookmark');
|
||||||
|
|||||||
Reference in New Issue
Block a user