Skip to content

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

fix: add title

Marc Seitza3d9e7ecb9d4
diff --git a/pages/view/domains/[domain]/[slug]/index.tsx b/pages/view/domains/[domain]/[slug]/index.tsx
index 690a7b82..70fe23b1 100644
--- a/pages/view/domains/[domain]/[slug]/index.tsx
+++ b/pages/view/domains/[domain]/[slug]/index.tsx
@@ -109,14 +109,14 @@ export default function ViewPage({
email: string;
};
- console.log("session", session);
-
if (!link || status === "loading") {
return (
<>
<CustomMetatag
enableBranding={meta?.enableCustomMetatag ?? false}
- title={meta?.metaTitle ?? link.document.name}
+ title={
+ meta?.metaTitle ?? link?.document?.name ?? "Papermark Document"
+ }
description={meta?.metaDescription ?? null}
imageUrl={meta?.metaImage ?? null}
url={meta?.metaUrl ?? ""}