diff --git a/app/(main)/treasury/[video_id]/page.tsx b/app/(main)/treasury/[video_id]/page.tsx
index e37d480..64e142c 100644
--- a/app/(main)/treasury/[video_id]/page.tsx
+++ b/app/(main)/treasury/[video_id]/page.tsx
@@ -10,20 +10,21 @@ import { Suspense } from 'react';
import Loader from '@/components/Loader';
interface IParams {
- params: {
+ params: Promise<{
video_id: number;
category_id: string;
content_url: string;
banner_url: string;
- };
+ }>;
}
const VideoItem = async ({ params }: IParams) => {
+ const { video_id } = await params;
const queryClient = getQueryClient();
await queryClient.prefetchQuery({
- queryKey: ['video', `video:${params.video_id}`],
- queryFn: () => Queries.getVideo(params.video_id),
+ queryKey: ['video', `video:${video_id}`],
+ queryFn: () => Queries.getVideo(video_id),
});
await queryClient.prefetchInfiniteQuery({
queryKey: ['video', 'all'],
@@ -57,7 +58,7 @@ const VideoItem = async ({ params }: IParams) => {