Skip to content

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

fix: index modal

Marc Seitz4ec9afb723b0
diff --git a/components/datarooms/actions/generate-index-dialog.tsx b/components/datarooms/actions/generate-index-dialog.tsx
index a36a55a8..7603b66a 100644
--- a/components/datarooms/actions/generate-index-dialog.tsx
+++ b/components/datarooms/actions/generate-index-dialog.tsx
@@ -138,7 +138,7 @@ export default function GenerateIndexDialog({
Generate Index File
</Button>
</DialogTrigger>
- <DialogContent className="sm:max-w-[425px]">
+ <DialogContent className="sm:max-w-md">
<DialogHeader>
<DialogTitle>Generate Dataroom Index File</DialogTitle>
<DialogDescription>
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/generate-index.ts b/pages/api/teams/[teamId]/datarooms/[id]/generate-index.ts
index 31138591..859668d4 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/generate-index.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/generate-index.ts
@@ -49,7 +49,7 @@ export default async function handle(
return res.status(401).json({ error: "Unauthorized" });
}
- if (team.plan !== "datarooms" && !team.plan.includes("trial")) {
+ if (!team.plan.includes("datarooms") && !team.plan.includes("trial")) {
return res.status(401).json({
error: "Please upgrade to a Data Rooms plan to generate an index",
});