mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 16:44:29 +03:00
catch undefined
This commit is contained in:
parent
9065771cdf
commit
03db156c20
@ -240,7 +240,8 @@ export default function MasksAndZonesView({
|
|||||||
scaledWidth,
|
scaledWidth,
|
||||||
scaledHeight,
|
scaledHeight,
|
||||||
),
|
),
|
||||||
distances: zoneData.distances.map((distance) => parseFloat(distance)),
|
distances:
|
||||||
|
zoneData.distances?.map((distance) => parseFloat(distance)) ?? [],
|
||||||
isFinished: true,
|
isFinished: true,
|
||||||
color: zoneData.color,
|
color: zoneData.color,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user