diff --git a/app/profile/[mid]/page.js b/app/profile/[mid]/page.js index f531be0..7208c49 100644 --- a/app/profile/[mid]/page.js +++ b/app/profile/[mid]/page.js @@ -67,7 +67,7 @@ export default function PersonSpace() { })), ]; - // console.log("photosArr", photosArr); + console.log("photosArr", photosArr); setTopPhotos(photosArr); setLoading(false); } catch (error) { @@ -170,7 +170,7 @@ export default function PersonSpace() { {topPhotos.map((photo, index) => (
{ if (photo.type == "video") { @@ -183,7 +183,7 @@ export default function PersonSpace() { } else { showPhotos( topPhotos.filter((it) => it.type == "img"), - index + topPhotos.filter((it) => it.type == "img").indexOf(photo) ); } }}