mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-03 22:04:53 +03:00
Remove timeout defer hack in favor of refactored hook
This commit is contained in:
parent
da877214d5
commit
025018dd98
@ -272,19 +272,17 @@ export default function Events() {
|
|||||||
...reviewFilter,
|
...reviewFilter,
|
||||||
...getReviewDayBounds(new Date(reviewLink.timestamp * 1000)),
|
...getReviewDayBounds(new Date(reviewLink.timestamp * 1000)),
|
||||||
});
|
});
|
||||||
globalThis.setTimeout(() => {
|
setRecording(
|
||||||
setRecording(
|
{
|
||||||
{
|
camera: reviewLink.camera,
|
||||||
camera: reviewLink.camera,
|
startTime: reviewLink.timestamp,
|
||||||
startTime: reviewLink.timestamp,
|
// severity not actually applicable here, but the type requires it
|
||||||
// severity not actually applicable here, but the type requires it
|
// this pattern is also used LiveCameraView to enter recording view
|
||||||
// this pattern is also used LiveCameraView to enter recording view
|
severity: "alert",
|
||||||
severity: "alert",
|
timelineType: notificationTab,
|
||||||
timelineType: notificationTab,
|
},
|
||||||
},
|
true,
|
||||||
true,
|
);
|
||||||
);
|
|
||||||
}, 0);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user