Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: remove token removal

Marc Seitzee9376770995
diff --git a/components/view/PagesViewerNew.tsx b/components/view/PagesViewerNew.tsx
index 56d17a0d..9e0e329b 100644
--- a/components/view/PagesViewerNew.tsx
+++ b/components/view/PagesViewerNew.tsx
@@ -221,7 +221,7 @@ export default function PagesViewer({
);
};
- if (!dataroomId) {
+ if (!dataroomId && router.query.token) {
removeQueryParams();
}
}, []); // Run once on mount