diff --git a/src/ui/static/js/services.js b/src/ui/static/js/services.js index 0f154a55f..10d444ffd 100644 --- a/src/ui/static/js/services.js +++ b/src/ui/static/js/services.js @@ -238,8 +238,8 @@ class ServiceModal { inpt.tagName === "INPUT" && inpt.getAttribute("type") === "checkbox" ) { - inpt.checked = defaultVal === "yes" ? true : false; - inpt.setAttribute("value", defaultVal); + inpt.checked = value === "yes" ? true : false; + inpt.setAttribute("value", value); } //for select if (inpt.tagName === "SELECT") {