Skip to content

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

update

Ashish Viradiyaf75ede54fe88
diff --git a/components/links/link-sheet/domain-section.tsx b/components/links/link-sheet/domain-section.tsx
index 0ea429ff..8aa47912 100644
--- a/components/links/link-sheet/domain-section.tsx
+++ b/components/links/link-sheet/domain-section.tsx
@@ -58,12 +58,13 @@ export default function DomainSection({
editLink && data.domain && data.domain !== "papermark.com" ? true : false;
const handleDomainChange = (value: string) => {
- const canChangeCustomDomain = linkType === "DOCUMENT_LINK"
- ? canUseCustomDomainForDocument
- : canUseCustomDomainForDataroom;
-
+ const canChangeCustomDomain =
+ linkType === "DOCUMENT_LINK"
+ ? canUseCustomDomainForDocument
+ : canUseCustomDomainForDataroom;
+
if (isEditingCustomDomain && !canChangeCustomDomain) {
- setDisplayValue(value);
+ setDisplayValue(data.domain ?? "papermark.com");
return;
}
@@ -327,4 +328,4 @@ export default function DomainSection({
/>
</>
);
-}
+}
\ No newline at end of file