mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
Fix mobile crash
This commit is contained in:
parent
9aee0f625b
commit
b6c9ecb1c8
@ -267,9 +267,9 @@ export default function MobileTimelineView({
|
|||||||
}
|
}
|
||||||
|
|
||||||
function timelineItemsToScrubber(items: Timeline[]): ScrubberItem[] {
|
function timelineItemsToScrubber(items: Timeline[]): ScrubberItem[] {
|
||||||
return items.map((item) => {
|
return items.map((item, idx) => {
|
||||||
return {
|
return {
|
||||||
id: item.timestamp,
|
id: `${item.timestamp}-${idx}`,
|
||||||
content: getTimelineContentElement(item),
|
content: getTimelineContentElement(item),
|
||||||
start: new Date(item.timestamp * 1000),
|
start: new Date(item.timestamp * 1000),
|
||||||
end: new Date(item.timestamp * 1000),
|
end: new Date(item.timestamp * 1000),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user