diff --git a/src/pages/Editor/Editor.jsx b/src/pages/Editor/Editor.jsx index d51998b9..97fd3e63 100644 --- a/src/pages/Editor/Editor.jsx +++ b/src/pages/Editor/Editor.jsx @@ -19,7 +19,7 @@ function Editor() { useEffect(() => { if(currentPageNo > pageCount) setCurrentPageNo(prev => prev-1); - }, [pageCount]) + }, [pageCount, currentPageNo]) useEffect(() => { window.scrollTo(0, 0);