mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-20 20:43:01 +03:00
lint fix
This commit is contained in:
@@ -308,7 +308,9 @@ export function RecordingView({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sort all events by start time to ensure correct order
|
// Sort all events by start time to ensure correct order
|
||||||
const sortedEvents = [...mainCameraReviewItems].sort((a, b) => a.start_time - b.start_time);
|
const sortedEvents = [...mainCameraReviewItems].sort(
|
||||||
|
(a, b) => a.start_time - b.start_time,
|
||||||
|
);
|
||||||
|
|
||||||
// Find which event we're currently viewing
|
// Find which event we're currently viewing
|
||||||
// Check if current time is between (event start - REVIEW_PADDING) and (event end or start + 60s)
|
// Check if current time is between (event start - REVIEW_PADDING) and (event end or start + 60s)
|
||||||
@@ -319,7 +321,7 @@ export function RecordingView({
|
|||||||
});
|
});
|
||||||
|
|
||||||
let targetEvent;
|
let targetEvent;
|
||||||
|
|
||||||
if (currentEventIndex >= 0) {
|
if (currentEventIndex >= 0) {
|
||||||
// We identified the current event - use index-based navigation
|
// We identified the current event - use index-based navigation
|
||||||
if (direction === "next") {
|
if (direction === "next") {
|
||||||
|
|||||||
Reference in New Issue
Block a user