mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-01 00:22:19 +03:00
UI tweaks (#16813)
* Add escape to close review details * Refresh review page automatically if there are currently no items to review
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user