Skip to content

Commit

Permalink
Remove timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Dec 12, 2024
1 parent 1a23fde commit 2715fca
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions web/src/pages/Events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,18 @@ export default function Events() {
const startTime = resp.data.start_time - REVIEW_PADDING;
const date = new Date(startTime * 1000);

setTimeout(() => {
setReviewFilter({
after: getBeginningOfDayTimestamp(date),
before: getEndOfDayTimestamp(date),
});
setRecording(
{
camera: resp.data.camera,
startTime,
severity: resp.data.severity,
},
true,
);
}, 100);
setReviewFilter({
after: getBeginningOfDayTimestamp(date),
before: getEndOfDayTimestamp(date),
});
setRecording(
{
camera: resp.data.camera,
startTime,
severity: resp.data.severity,
},
true,
);
}
})
.catch(() => {});
Expand Down

0 comments on commit 2715fca

Please sign in to comment.