From 61a9481ddfa2b09ea758cdd351dce82aa7a78778 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Sun, 12 Jun 2022 16:11:03 +0200 Subject: [PATCH] Fix project modal --- components/ProjectModal.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/ProjectModal.tsx b/components/ProjectModal.tsx index 3a0d141..9837831 100644 --- a/components/ProjectModal.tsx +++ b/components/ProjectModal.tsx @@ -25,11 +25,12 @@ const ProjectModal: NextPage = () => { const containerRef = useRef(null); - useEffect(() => { + /*useEffect(() => { + console.log(content); if (content && containerRef.current) { containerRef.current.innerHTML = content; } - }, [content]); + }, [content]);*/ if (!visible) return <>; @@ -43,7 +44,7 @@ const ProjectModal: NextPage = () => { // If diaryPages // Show page selector } -
+