* Add escape to close review details

* Refresh review page automatically if there are currently no items to review
This commit is contained in:
Nicolas Mowen
2025-02-25 19:17:39 -06:00
committed by GitHub
parent 7ce1b354cc
commit 7eb3c87fa0
2 changed files with 19 additions and 0 deletions
+10
View File
@@ -621,6 +621,16 @@ function DetectionReview({
// existing review item
useEffect(() => {
if (loading || currentItems == null || itemsToReview == undefined) {
return;
}
if (currentItems.length == 0 && itemsToReview > 0) {
pullLatestData();
}
}, [loading, currentItems, itemsToReview, pullLatestData]);
useEffect(() => {
if (!startTime || !currentItems || currentItems.length == 0) {
return;