Ensure review padding is consistently applied (#11728)

This commit is contained in:
Nicolas Mowen 2024-06-03 17:10:39 -06:00 committed by GitHub
parent e6d1ad0ac5
commit ea0292b911
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,7 @@ import { useOverlayState, useSearchEffect } from "@/hooks/use-overlay-state";
import { FrigateConfig } from "@/types/frigateConfig";
import { RecordingStartingPoint } from "@/types/record";
import {
REVIEW_PADDING,
ReviewFilter,
ReviewSegment,
ReviewSeverity,
@ -42,7 +43,7 @@ export default function Events() {
setRecording(
{
camera: resp.data.camera,
startTime: resp.data.start_time,
startTime: resp.data.start_time - REVIEW_PADDING,
severity: resp.data.severity,
},
true,