mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-22 17:06:39 -06: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>
|
</div>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
: Array(itemsToReview)
|
: (itemsToReview ?? 0) > 0 &&
|
||||||
|
Array(itemsToReview)
|
||||||
.fill(0)
|
.fill(0)
|
||||||
.map((_, idx) => (
|
.map((_, idx) => (
|
||||||
<Skeleton key={idx} className="size-full aspect-video" />
|
<Skeleton key={idx} className="size-full aspect-video" />
|
||||||
|
Loading…
Reference in New Issue
Block a user