forked from Github/frigate
Fix array out of range error in reviews (#11059)
This commit is contained in:
@@ -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" />
|
||||||
|
|||||||
Reference in New Issue
Block a user