Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: conditional loading of useState
Marc Seitz836b252de635
diff --git a/components/NotionPage.tsx b/components/NotionPage.tsxindex 17a3bbe3..a274f2fe 100644--- a/components/NotionPage.tsx+++ b/components/NotionPage.tsx@@ -19,10 +19,6 @@ export const NotionPage = ({documentId: string;versionNumber: number;}) => {- if (!recordMap) {- return null;- }-const [pageNumber, setPageNumber] = useState<number>(1); // start on first pageconst [maxScrollPercentage, setMaxScrollPercentage] = useState<number>(0);@@ -107,6 +103,10 @@ export const NotionPage = ({};}, [maxScrollPercentage]);+ if (!recordMap) {+ return null;+ }+return (<><div className="bg-white">