fix array out of range

This commit is contained in:
Josh Hawkins 2024-04-21 16:51:27 -05:00
parent baf363fcb0
commit cfbc4a6310

View File

@ -589,7 +589,8 @@ function DetectionReview({
</div>
);
})
: Array(itemsToReview)
: itemsToReview ??
Array(itemsToReview)
.fill(0)
.map((_, idx) => (
<Skeleton key={idx} className="size-full aspect-video" />