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);