diff --git a/src/ui/src/components/core/input/CoreSwitchInput.vue b/src/ui/src/components/core/input/CoreSwitchInput.vue
index 0ab7f23a6..60b6f72c6 100644
--- a/src/ui/src/components/core/input/CoreSwitchInput.vue
+++ b/src/ui/src/components/core/input/CoreSwitchInput.vue
@@ -7,10 +7,10 @@
>
@@ -29,7 +29,6 @@ import {
separatorColor,
cssClasses,
} from "@/renderer/sharedStyleFields";
-import { onMounted } from "vue";
import BaseInputWrapper from "../base/BaseInputWrapper.vue";
import { ComponentPublicInstance } from "vue";
@@ -82,25 +81,16 @@ const { formValue, handleInput } = useFormValueBroker(
instancePath,
rootInstance,
);
-const toggleValue = ref(false);
function handleToggle() {
- toggleValue.value = !toggleValue.value;
- handleInput(toggleValue.value, "wf-toggle");
+ handleInput(!formValue.value, "wf-toggle");
}
-
-onMounted(() => {
- toggleValue.value = !!formValue.value;
-});