mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 21:25:24 +03:00
Avoid crash from opening motion time right now
This commit is contained in:
parent
0096a6d778
commit
0309626591
@ -845,7 +845,7 @@ function MotionReview({
|
|||||||
onClick={() =>
|
onClick={() =>
|
||||||
onOpenRecording({
|
onOpenRecording({
|
||||||
camera: camera.name,
|
camera: camera.name,
|
||||||
startTime: currentTime,
|
startTime: Math.min(currentTime, Date.now() / 1000 - 10),
|
||||||
severity: "significant_motion",
|
severity: "significant_motion",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user