mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: use template name instead of component
topic page can have suggested topics which has category component
This commit is contained in:
@@ -606,8 +606,8 @@ define('navigator', [
|
||||
};
|
||||
|
||||
navigator.scrollToIndex = function (index, highlight, duration) {
|
||||
const inTopic = !!components.get('topic').length;
|
||||
const inCategory = !!components.get('category').length;
|
||||
const inTopic = ajaxify.data.template.topic;
|
||||
const inCategory = ajaxify.data.template.category;
|
||||
|
||||
if (!utils.isNumber(index) || (!inTopic && !inCategory)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user