Skip to content

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

add requirement for viewId

Marc Seitz63621866433b
diff --git a/components/view/document-view.tsx b/components/view/document-view.tsx
index 12e541d7..f049c03a 100644
--- a/components/view/document-view.tsx
+++ b/components/view/document-view.tsx
@@ -125,7 +125,8 @@ export default function DocumentView({
!emailProtected &&
!linkPassword &&
!submitted &&
- !hasInitiatedSubmit.current
+ !hasInitiatedSubmit.current &&
+ viewData.viewId == ""
) {
hasInitiatedSubmit.current = true;
handleSubmission();