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

View File

@ -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 {