diff --git a/components/NotionPage.js b/components/NotionPage.js index 4295f224..0930eef4 100644 --- a/components/NotionPage.js +++ b/components/NotionPage.js @@ -59,7 +59,7 @@ const NotionPage = ({ post }) => { (zoomRef.current).attach(imgList[i]) } } - }, [router.events]) + }, [router?.events]) return