Skip to content

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

fix: link may be null

Marc Seitzab8cb7a9fb9a
diff --git a/pages/view/d/[linkId]/index.tsx b/pages/view/d/[linkId]/index.tsx
index 632851f2..721b8b95 100644
--- a/pages/view/d/[linkId]/index.tsx
+++ b/pages/view/d/[linkId]/index.tsx
@@ -133,7 +133,7 @@ export default function ViewPage({
<>
<CustomMetatag
enableBranding={meta?.enableCustomMetatag ?? false}
- title={meta?.metaTitle ?? link.dataroom.name}
+ title={meta?.metaTitle ?? link?.dataroom.name ?? "Dataroom"}
description={meta?.metaDescription ?? null}
imageUrl={meta?.metaImage ?? null}
url={`https://www.papermark.io/view/d/${router.query.linkId}`}