From 05c1333adabe21986096f0b51dfe14a95a2e560a Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Tue, 13 Jun 2023 20:52:27 +0200 Subject: [PATCH] fix: fix contact selector (#6680) --- resources/js/Shared/Form/ContactSelector.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/js/Shared/Form/ContactSelector.vue b/resources/js/Shared/Form/ContactSelector.vue index 00767d24a35..549aea30085 100644 --- a/resources/js/Shared/Form/ContactSelector.vue +++ b/resources/js/Shared/Form/ContactSelector.vue @@ -5,10 +5,7 @@ import { trans } from 'laravel-vue-i18n'; import Errors from '@/Shared/Form/Errors.vue'; const props = defineProps({ - modelValue: { - type: [Array], - default: () => [], - }, + modelValue: Array, inputClass: String, placeholder: { type: String, @@ -44,7 +41,7 @@ const form = useForm({ }); const displayAddContactButton = computed(() => { - if (!props.addMultipleContacts && props.localContacts.length >= 1) { + if (!props.addMultipleContacts && localContacts.value.length >= 1) { return false; }