diff --git a/themes/magzine/components/Catalog.js b/themes/magzine/components/Catalog.js index b127d24a..630cf031 100644 --- a/themes/magzine/components/Catalog.js +++ b/themes/magzine/components/Catalog.js @@ -53,6 +53,7 @@ const Catalog = ({ toc, className }) => { setActiveSection(currentSectionId) const index = tocIds.indexOf(currentSectionId) || 0 tRef?.current?.scrollTo({ top: 28 * index, behavior: 'smooth' }) + console.log(tRef?.current) }, throttleMs) ) @@ -67,7 +68,7 @@ const Catalog = ({ toc, className }) => {