mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 19:55:26 +03:00
Cleanup
This commit is contained in:
parent
d0f6316ee9
commit
5c86f6d3f6
@ -27,7 +27,6 @@ export default function HistoryCard({ allPreviews, timeline }: HistoryCardProps)
|
|||||||
camera={timeline.camera}
|
camera={timeline.camera}
|
||||||
allPreviews={allPreviews || []}
|
allPreviews={allPreviews || []}
|
||||||
startTs={Object.values(timeline.entries)[0].timestamp}
|
startTs={Object.values(timeline.entries)[0].timestamp}
|
||||||
mode="thumbnail"
|
|
||||||
/>
|
/>
|
||||||
<div className="p-2">
|
<div className="p-2">
|
||||||
<div className="text-sm flex">
|
<div className="text-sm flex">
|
||||||
|
|||||||
@ -46,8 +46,6 @@ function History() {
|
|||||||
cards[dayKey][hour] = {};
|
cards[dayKey][hour] = {};
|
||||||
Object.values(hourlyTimeline["hours"][hour]).forEach((i) => {
|
Object.values(hourlyTimeline["hours"][hour]).forEach((i) => {
|
||||||
const time = new Date(i.timestamp * 1000);
|
const time = new Date(i.timestamp * 1000);
|
||||||
time.setSeconds(0);
|
|
||||||
time.setMilliseconds(0);
|
|
||||||
const key = `${i.camera}-${time.getMinutes()}`;
|
const key = `${i.camera}-${time.getMinutes()}`;
|
||||||
|
|
||||||
// detail level for saving items
|
// detail level for saving items
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user