mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-16 02:23:02 +03:00
check correct zone name in publish state
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user