From 3da6736f5a045fc4ba0194ea8199ec5224a1915e Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Fri, 20 Dec 2024 11:10:08 +0100
Subject: [PATCH] fix(toggle-switch): remove throw

---
 source/components/form/toggle-switch.mjs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/components/form/toggle-switch.mjs b/source/components/form/toggle-switch.mjs
index c00374d9b..cc5a45cc9 100644
--- a/source/components/form/toggle-switch.mjs
+++ b/source/components/form/toggle-switch.mjs
@@ -109,10 +109,10 @@ class ToggleSwitch extends CustomControl {
 			},
 			actions: {
 				on: () => {
-					throw new Error("the on action is not defined");
+
 				},
 				off: () => {
-					throw new Error("the off action is not defined");
+
 				},
 			},
 		});
-- 
GitLab