mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-17 13:48:21 +03:00
formatting
This commit is contained in:
parent
3a08b3d54b
commit
b1081d7217
@ -311,8 +311,8 @@ export default function MasksAndZonesView({
|
|||||||
const zones: Polygon[] = [];
|
const zones: Polygon[] = [];
|
||||||
for (const [name, { data: zoneData, source }] of mergedZones) {
|
for (const [name, { data: zoneData, source }] of mergedZones) {
|
||||||
const isBase = source === "base" && !!currentEditingProfile;
|
const isBase = source === "base" && !!currentEditingProfile;
|
||||||
const baseColor =
|
const baseColor = zoneData.color ??
|
||||||
zoneData.color ?? baseZones[name]?.color ?? [128, 128, 0];
|
baseZones[name]?.color ?? [128, 128, 0];
|
||||||
zones.push({
|
zones.push({
|
||||||
type: "zone" as PolygonType,
|
type: "zone" as PolygonType,
|
||||||
typeIndex: zoneIndex,
|
typeIndex: zoneIndex,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user