Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
remove custome field if lable not added
Ashish Viradiya6890e6da08f6
diff --git a/ee/features/permissions/components/dataroom-link-sheet.tsx b/ee/features/permissions/components/dataroom-link-sheet.tsxindex 5df600ea..1b6e5039 100644--- a/ee/features/permissions/components/dataroom-link-sheet.tsx+++ b/ee/features/permissions/components/dataroom-link-sheet.tsx@@ -273,7 +273,9 @@ export function DataroomLinkSheet({endpoint = `/api/links/${currentLink.id}`;method = "PUT";}-+ const customFields = linkData.customFields?.filter((field) =>+ field.label.trim(),+ );const response = await fetch(endpoint, {method: method,headers: {@@ -281,6 +283,7 @@ export function DataroomLinkSheet({},body: JSON.stringify({...linkData,+ customFields: customFields,metaImage: blobUrl,metaFavicon: blobUrlFavicon,targetId: targetId,@@ -975,4 +978,4 @@ export function DataroomLinkSheet({)}</>);-}+}\ No newline at end of file