check correct zone name in publish state

This commit is contained in:
Josh Hawkins
2026-05-11 17:10:35 -05:00
parent f391406a94
commit f660c0bf3a
+1 -1
View File
@@ -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 {