From d20a97b07c327057d774465feb6edefa909fc368 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 8 Feb 2023 17:05:12 +0800 Subject: [PATCH] medium - mobile - toc --- themes/medium/components/Catalog.js | 1 - 1 file changed, 1 deletion(-) diff --git a/themes/medium/components/Catalog.js b/themes/medium/components/Catalog.js index a92123f1..af4b1156 100644 --- a/themes/medium/components/Catalog.js +++ b/themes/medium/components/Catalog.js @@ -52,7 +52,6 @@ const Catalog = ({ toc }) => { } setActiveSection(currentSectionId) const index = tocIds.indexOf(currentSectionId) || 0 - console.log(tRef?.current) tRef?.current?.scrollTo({ top: 28 * index, behavior: 'smooth' }) }, throttleMs))