fix: use max

This commit is contained in:
Barış Soner Uşaklı
2021-01-13 11:37:15 -05:00
parent c30b40abe7
commit 0a471b76b5

View File

@@ -247,7 +247,7 @@ define('topicList', [
}
if (!topicSelect.getSelectedTids().length) {
infinitescroll.removeExtra(topicListEl.find('[component="category/topic"]'), direction, 60);
infinitescroll.removeExtra(topicListEl.find('[component="category/topic"]'), direction, Math.max(60, config.topicsPerPage * 3));
}
html.find('.timeago').timeago();