Fix array out of range error in reviews (#11059)

This commit is contained in:
Josh Hawkins 2024-04-21 20:03:43 -05:00 committed by GitHub
parent baf363fcb0
commit acadfb6959
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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