From f660c0bf3ae5a4ecc243e40089c98576f54a69a2 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 11 May 2026 17:10:35 -0500 Subject: [PATCH] check correct zone name in publish state --- web/src/components/settings/ZoneEditPane.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {