mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +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) {
|
navigator.scrollToIndex = function (index, highlight, duration) {
|
||||||
const inTopic = !!components.get('topic').length;
|
const inTopic = ajaxify.data.template.topic;
|
||||||
const inCategory = !!components.get('category').length;
|
const inCategory = ajaxify.data.template.category;
|
||||||
|
|
||||||
if (!utils.isNumber(index) || (!inTopic && !inCategory)) {
|
if (!utils.isNumber(index) || (!inTopic && !inCategory)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user