Skip to content

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

fix: dataroom notification interfere with uploading

Marc Seitz9460433e1e9c
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/documents/index.ts b/pages/api/teams/[teamId]/datarooms/[id]/documents/index.ts
index 0f1ba073..87df0183 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/documents/index.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/documents/index.ts
@@ -159,7 +159,7 @@ export default async function handle(
payload: {
dataroomId: dataroomId,
dataroomDocumentId: document.id,
- linkId: document.dataroom.links[0].id,
+ linkId: document.dataroom.links[0].id ?? "",
senderUserId: userId,
},
});