From acadfb69593d778dde423d33f04614251327b4c2 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 21 Apr 2024 20:03:43 -0500 Subject: [PATCH] Fix array out of range error in reviews (#11059) --- web/src/views/events/EventView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsx index 6c6bd2dec..015507982 100644 --- a/web/src/views/events/EventView.tsx +++ b/web/src/views/events/EventView.tsx @@ -589,7 +589,8 @@ function DetectionReview({ ); }) - : Array(itemsToReview) + : (itemsToReview ?? 0) > 0 && + Array(itemsToReview) .fill(0) .map((_, idx) => (