Fix switch with array

This commit is contained in:
philipp lang 2024-07-03 17:07:14 +02:00
parent d1dfcb3a04
commit fed0e95f14
1 changed files with 2 additions and 2 deletions

View File

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