diff --git a/client/components/forms/PhoneInput.vue b/client/components/forms/PhoneInput.vue index 014893b..297697b 100644 --- a/client/components/forms/PhoneInput.vue +++ b/client/components/forms/PhoneInput.vue @@ -138,7 +138,7 @@ export default { if(this.compVal === null){ return; } - if (!this.compVal.startsWith('+')) { + if (!this.compVal?.startsWith('+')) { this.selectedCountryCode = this.getCountryBy(this.compVal.substring(2, 0)) } diff --git a/client/components/forms/SelectInput.vue b/client/components/forms/SelectInput.vue index e5cf34a..9248c75 100644 --- a/client/components/forms/SelectInput.vue +++ b/client/components/forms/SelectInput.vue @@ -32,7 +32,7 @@ @@ -122,6 +122,7 @@ export default { return null }, updateModelValue(newValues){ + if (newValues === null) newValues = [] this.selectedValues = newValues }, updateOptions (newItem) { diff --git a/client/components/forms/SignatureInput.vue b/client/components/forms/SignatureInput.vue index 3859127..d9dfeb6 100644 --- a/client/components/forms/SignatureInput.vue +++ b/client/components/forms/SignatureInput.vue @@ -53,7 +53,7 @@ export default { if (this.disabled) { this.$refs.signaturePad.clearSignature() } else { - const { isEmpty, data } = this.$refs.signaturePad.saveSignature() + const { isEmpty, data } = this.$refs.signaturePad?.saveSignature() this.form[this.name] = (!isEmpty && data) ? data : null } } diff --git a/client/components/global/WorkspaceDropdown.vue b/client/components/global/WorkspaceDropdown.vue index ca8b2cc..26212bf 100644 --- a/client/components/global/WorkspaceDropdown.vue +++ b/client/components/global/WorkspaceDropdown.vue @@ -23,7 +23,7 @@