Skip to content

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

fix: props

Marc Seitz39be48f91ed3
diff --git a/pages/view/domains/[domain]/[slug]/index.tsx b/pages/view/domains/[domain]/[slug]/index.tsx
index 3bf87dee..26cb3da6 100644
--- a/pages/view/domains/[domain]/[slug]/index.tsx
+++ b/pages/view/domains/[domain]/[slug]/index.tsx
@@ -242,10 +242,12 @@ export default function ViewPage({
email: verifiedEmail,
d: disableEditEmail,
previewToken,
+ preview,
} = router.query as {
email: string;
d: string;
previewToken?: string;
+ preview?: string;
};
const { linkType, link, brand } = linkData;
@@ -399,12 +401,12 @@ export default function ViewPage({
userId={userId}
isProtected={!!(emailProtected || linkPassword || enableAgreement)}
brand={brand}
- useAdvancedExcelViewer={useAdvancedExcelViewer}
- previewToken={previewToken}
disableEditEmail={!!disableEditEmail}
useCustomAccessForm={useCustomAccessForm}
token={storedToken}
verifiedEmail={verifiedEmail}
+ previewToken={previewToken}
+ preview={!!preview}
/>
</>
);