Skip to content

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

fix: types

Marc Seitzded6606d3a11
diff --git a/components/links/link-sheet/link-options.tsx b/components/links/link-sheet/link-options.tsx
index 2de9963e..0a4db1c8 100644
--- a/components/links/link-sheet/link-options.tsx
+++ b/components/links/link-sheet/link-options.tsx
@@ -43,7 +43,7 @@ export const LinkOptions = ({
}: {
data: DEFAULT_LINK_TYPE;
setData: React.Dispatch<React.SetStateAction<DEFAULT_LINK_TYPE>>;
- targetId: string;
+ targetId?: string;
linkType: LinkType;
editLink?: boolean;
}) => {
@@ -84,7 +84,9 @@ export const LinkOptions = ({
<AllowNotificationSection {...{ data, setData }} />
<AllowDownloadSection {...{ data, setData }} />
<ExpirationSection {...{ data, setData }} />
- {limits?.dataroomUpload && linkType === LinkType.DATAROOM_LINK ? (
+ {limits?.dataroomUpload &&
+ linkType === LinkType.DATAROOM_LINK &&
+ targetId ? (
<UploadSection
{...{ data, setData }}
isAllowed={isTrial || isDatarooms || isDataroomsPlus}