diff --git a/web/src/components/settings/ZoneEditPane.tsx b/web/src/components/settings/ZoneEditPane.tsx index 0affaff079..2760550b89 100644 --- a/web/src/components/settings/ZoneEditPane.tsx +++ b/web/src/components/settings/ZoneEditPane.tsx @@ -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 {