diff --git a/src/js/tool-view.js b/src/js/tool-view.js index e649874..9927eba 100644 --- a/src/js/tool-view.js +++ b/src/js/tool-view.js @@ -159,7 +159,7 @@ module.exports = { this.config.tool = merge({}, this.config.tool, settings["tool"]); this.config["pwm-spindle"] = merge({}, this.config["pwm-spindle"], settings["pwm-spindle"]); this.config["modbus-spindle"] = merge({}, this.config["modbus-spindle"], settings["modbus-spindle"]); - if (this.selected_tool == "pwncnc-vfd" && _.isEmpty(settings)) { + if (this.selected_tool == "pwncnc-vfd" && Object.keys(settings).length == 0) { this.config["modbus-spindle"]["regs"][5] = { "reg-value": 6, "reg-type": "stop-write",