mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Fix delay for new alerts
This commit is contained in:
parent
5dbdabeaee
commit
083337064b
@ -43,7 +43,7 @@ export default function LiveDashboardView({
|
|||||||
|
|
||||||
// if event is ended and was saved, update events list
|
// if event is ended and was saved, update events list
|
||||||
if (eventUpdate.type == "end" && eventUpdate.review.severity == "alert") {
|
if (eventUpdate.type == "end" && eventUpdate.review.severity == "alert") {
|
||||||
updateEvents();
|
setTimeout(() => updateEvents(), 1000);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}, [eventUpdate, updateEvents]);
|
}, [eventUpdate, updateEvents]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user