File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
apps/web/app/(org)/dashboard/folder/[id] Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ interface BreadcrumbItemProps {
1515 id : Folder . FolderId ;
1616 name : string ;
1717 color : "normal" | "blue" | "red" | "yellow" ;
18- spaceId : Space . SpaceIdOrOrganisationId ;
18+ spaceId ? : Space . SpaceIdOrOrganisationId | null ;
1919 isLast : boolean ;
2020}
2121
@@ -64,7 +64,7 @@ export function BreadcrumbItem({
6464 await moveVideoToFolder ( {
6565 videoId : capData . id ,
6666 folderId : id ,
67- spaceId,
67+ spaceId : spaceId ?? null ,
6868 } ) ;
6969 router . refresh ( ) ;
7070 toast . success ( `"${ capData . name } " moved to "${ name } " folder` ) ;
Original file line number Diff line number Diff line change 11import { getCurrentUser } from "@cap/database/auth/session" ;
22import { serverEnv } from "@cap/env" ;
3- import { CurrentUser , type Folder , type Space } from "@cap/web-domain" ;
3+ import { CurrentUser , type Folder } from "@cap/web-domain" ;
44import { Effect } from "effect" ;
55import { notFound } from "next/navigation" ;
66import {
@@ -18,11 +18,7 @@ import {
1818} from "./components" ;
1919import FolderVideosSection from "./components/FolderVideosSection" ;
2020
21- const FolderPage = async ( {
22- params,
23- } : {
24- params : { id : Folder . FolderId ; spaceId : Space . SpaceIdOrOrganisationId } ;
25- } ) => {
21+ const FolderPage = async ( { params } : { params : { id : Folder . FolderId } } ) => {
2622 const user = await getCurrentUser ( ) ;
2723 if ( ! user || ! user . activeOrganizationId ) return notFound ( ) ;
2824
@@ -50,7 +46,6 @@ const FolderPage = async ({
5046 < p className = "mx-2 text-gray-10" > /</ p >
5147 < BreadcrumbItem
5248 id = { folder . id }
53- spaceId = { params . spaceId }
5449 name = { folder . name }
5550 color = { folder . color }
5651 isLast = { index === breadcrumb . length - 1 }
You can’t perform that action at this time.
0 commit comments