From fed0e95f14214bace5258c5fee261486983cdffd Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 3 Jul 2024 17:07:14 +0200 Subject: [PATCH] Fix switch with array --- resources/js/components/form/Switch.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/components/form/Switch.vue b/resources/js/components/form/Switch.vue index 4c2329b1..629e2ed7 100644 --- a/resources/js/components/form/Switch.vue +++ b/resources/js/components/form/Switch.vue @@ -80,9 +80,9 @@ const v = computed({ return; } - var a = props.modelValue.filter((i) => i !== this.value); + var a = props.modelValue.filter((i) => i !== props.value); if (v) { - a.push(this.value); + a.push(props.value); } emit('update:modelValue', a);