Skip to content

Commit 15539f8

Browse files
committed
chore: minor refactoring in data-room-files
1 parent 04d3078 commit 15539f8

File tree

1 file changed

+8
-11
lines changed
  • src/app/(authenticated)/(dashboard)/[publicId]/documents/data-rooms/[dataRoomPublicId]

1 file changed

+8
-11
lines changed

src/app/(authenticated)/(dashboard)/[publicId]/documents/data-rooms/[dataRoomPublicId]/page.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use server";
22

3-
import { type ExtendedRecipientType } from "@/components/common/share-modal";
43
import { api } from "@/trpc/server";
54
import type { Bucket, DataRoom } from "@prisma/client";
65
import { notFound } from "next/navigation";
@@ -11,15 +10,14 @@ const DataRoomSettinsPage = async ({
1110
}: {
1211
params: { publicId: string; dataRoomPublicId: string };
1312
}) => {
14-
const { dataRoom, documents, recipients } =
15-
await api.dataRoom.getDataRoom.query({
16-
dataRoomPublicId,
17-
include: {
18-
company: false,
19-
recipients: true,
20-
documents: true,
21-
},
22-
});
13+
const { dataRoom, documents } = await api.dataRoom.getDataRoom.query({
14+
dataRoomPublicId,
15+
include: {
16+
company: false,
17+
recipients: true,
18+
documents: true,
19+
},
20+
});
2321
const contacts = await api.common.getContacts.query();
2422

2523
if (!dataRoom) {
@@ -30,7 +28,6 @@ const DataRoomSettinsPage = async ({
3028
<DataRoomFiles
3129
contacts={contacts}
3230
dataRoom={dataRoom as DataRoom}
33-
recipients={recipients as ExtendedRecipientType[]}
3431
documents={documents as Bucket[]}
3532
companyPublicId={publicId}
3633
/>

0 commit comments

Comments
 (0)