mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix array out of range error in reviews (#11059)
This commit is contained in:
parent
baf363fcb0
commit
acadfb6959
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user