Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
BugFix: cannot change custom urls if it's set for a link
Ashish Viradiya9524548567a9
diff --git a/components/links/link-sheet/domain-section.tsx b/components/links/link-sheet/domain-section.tsxindex 5fa4b97e..0ea429ff 100644--- a/components/links/link-sheet/domain-section.tsx+++ b/components/links/link-sheet/domain-section.tsx@@ -58,8 +58,11 @@ export default function DomainSection({editLink && data.domain && data.domain !== "papermark.com" ? true : false;const handleDomainChange = (value: string) => {- // Prevent changes if editing a link with custom domain- if (isEditingCustomDomain) {+ const canChangeCustomDomain = linkType === "DOCUMENT_LINK"+ ? canUseCustomDomainForDocument+ : canUseCustomDomainForDataroom;++ if (isEditingCustomDomain && !canChangeCustomDomain) {setDisplayValue(value);return;}