File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
src/app/(authenticated)/(dashboard)/[publicId]/documents/data-rooms/[dataRoomPublicId] Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
1
"use server" ;
2
2
3
- import { type ExtendedRecipientType } from "@/components/common/share-modal" ;
4
3
import { api } from "@/trpc/server" ;
5
4
import type { Bucket , DataRoom } from "@prisma/client" ;
6
5
import { notFound } from "next/navigation" ;
@@ -11,15 +10,14 @@ const DataRoomSettinsPage = async ({
11
10
} : {
12
11
params : { publicId : string ; dataRoomPublicId : string } ;
13
12
} ) => {
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
+ } ) ;
23
21
const contacts = await api . common . getContacts . query ( ) ;
24
22
25
23
if ( ! dataRoom ) {
@@ -30,7 +28,6 @@ const DataRoomSettinsPage = async ({
30
28
< DataRoomFiles
31
29
contacts = { contacts }
32
30
dataRoom = { dataRoom as DataRoom }
33
- recipients = { recipients as ExtendedRecipientType [ ] }
34
31
documents = { documents as Bucket [ ] }
35
32
companyPublicId = { publicId }
36
33
/>
You can’t perform that action at this time.
0 commit comments