Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
Pass teamId to tracking context in document and dataroom views
Cursor Agent8da60bc6632f
diff --git a/components/view/dataroom/dataroom-document-view.tsx b/components/view/dataroom/dataroom-document-view.tsxindex fc0fe551..211bf80b 100644--- a/components/view/dataroom/dataroom-document-view.tsx+++ b/components/view/dataroom/dataroom-document-view.tsx@@ -193,6 +193,7 @@ export default function DataroomDocumentView({viewerEmail: viewerEmail ?? data.email ?? verifiedEmail ?? userEmail,isEmbedded,isTeamMember,+ teamId: link.teamId,});// set the verification token to the cookiediff --git a/components/view/dataroom/dataroom-view.tsx b/components/view/dataroom/dataroom-view.tsxindex b1a4243c..60dba938 100644--- a/components/view/dataroom/dataroom-view.tsx+++ b/components/view/dataroom/dataroom-view.tsx@@ -157,6 +157,7 @@ export default function DataroomView({viewerEmail: viewerEmail ?? data.email ?? verifiedEmail ?? userEmail,isEmbedded,isTeamMember,+ teamId: dataroom?.teamId,});// set the verification token to the cookiediff --git a/components/view/document-view.tsx b/components/view/document-view.tsxindex b9f9f97e..694d0963 100644--- a/components/view/document-view.tsx+++ b/components/view/document-view.tsx@@ -171,6 +171,7 @@ export default function DocumentView({viewerEmail: data.email ?? verifiedEmail ?? userEmail,isEmbedded,isTeamMember,+ teamId: link.teamId,});// set the verification token to the cookie