mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-27 14:51:52 +03:00
check correct zone name in publish state
This commit is contained in:
parent
f391406a94
commit
f660c0bf3a
@ -528,7 +528,7 @@ export default function ZoneEditPane({
|
|||||||
);
|
);
|
||||||
updateConfig();
|
updateConfig();
|
||||||
// Only publish WS state for base config when zone has a name
|
// Only publish WS state for base config when zone has a name
|
||||||
if (!editingProfile && zoneName) {
|
if (!editingProfile && polygon?.name) {
|
||||||
sendZoneState(enabled ? "ON" : "OFF");
|
sendZoneState(enabled ? "ON" : "OFF");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user