diff --git a/src/app/(static)/p/[photoId]/layout.tsx b/src/app/(static)/p/[photoId]/layout.tsx index 06133c24..19a26fc9 100644 --- a/src/app/(static)/p/[photoId]/layout.tsx +++ b/src/app/(static)/p/[photoId]/layout.tsx @@ -59,15 +59,20 @@ export default async function PhotoPage({ const photo = photos.find(p => p.id === photoId); if (!photo) { redirect(PATH_ROOT); } - - const index = photos.findIndex(p => p.id === photoId); + + const isPhotoFirst = photos.findIndex(p => p.id === photoId) === 0; return <> {children} ; }