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();
|
||||
// Only publish WS state for base config when zone has a name
|
||||
if (!editingProfile && zoneName) {
|
||||
if (!editingProfile && polygon?.name) {
|
||||
sendZoneState(enabled ? "ON" : "OFF");
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user