From f6120ebb9f856ea4a7517010cdd9be2ec50646ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 13 Oct 2023 18:47:47 -0400 Subject: [PATCH] fix: use template name instead of component topic page can have suggested topics which has category component --- public/src/modules/navigator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.js index eabad6b410..9051524370 100644 --- a/public/src/modules/navigator.js +++ b/public/src/modules/navigator.js @@ -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;