From: Debayan Sutradhar Date: Thu, 24 Jun 2021 01:37:52 +0530 Subject: Update UIPropertyBox.java --- Update UIPropertyBox.java --- --- 'a/src/main/java/com/stream_pi/server/uipropertybox/UIPropertyBox.java' +++ b/src/main/java/com/stream_pi/server/uipropertybox/UIPropertyBox.java @@ -72,7 +72,7 @@ public class UIPropertyBox rawValue = Math.round(((Slider) controlNode).getValue()) + ""; else if (controlType == ControlType.TOGGLE) { ToggleSwitch toggleSwitch = ((ToggleSwitch) controlNode); - if (toggleButton.isSelected()) + if (toggleSwitch.isSelected()) rawValue = "true"; else rawValue = "false";