Avoid crash from opening motion time right now

This commit is contained in:
Nicolas Mowen 2024-04-04 07:35:41 -06:00
parent 0096a6d778
commit 0309626591

View File

@ -845,7 +845,7 @@ function MotionReview({
onClick={() =>
onOpenRecording({
camera: camera.name,
startTime: currentTime,
startTime: Math.min(currentTime, Date.now() / 1000 - 10),
severity: "significant_motion",
})
}