mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 12:15:25 +03:00
Fix timeilne items not working
This commit is contained in:
parent
8f3457aa66
commit
2b95df5233
@ -145,18 +145,22 @@ export function getTimelineHoursForDay(
|
|||||||
let end = 0;
|
let end = 0;
|
||||||
|
|
||||||
const dayIdx = Object.keys(cards).find((day) => {
|
const dayIdx = Object.keys(cards).find((day) => {
|
||||||
if (parseInt(day) > start) {
|
if (parseInt(day) < start) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (dayIdx == undefined) {
|
let day: {
|
||||||
return { start: 0, end: 0, playbackItems: [] };
|
[hour: string]: {
|
||||||
}
|
[groupKey: string]: Card;
|
||||||
|
};
|
||||||
|
} = {};
|
||||||
|
|
||||||
const day = cards[dayIdx];
|
if (dayIdx != undefined) {
|
||||||
|
day = cards[dayIdx];
|
||||||
|
}
|
||||||
|
|
||||||
for (let i = 0; i < 24; i++) {
|
for (let i = 0; i < 24; i++) {
|
||||||
startDay.setHours(startDay.getHours() + 1);
|
startDay.setHours(startDay.getHours() + 1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user