More front-end bug fixes

This commit is contained in:
Julien Nahum
2024-02-10 12:46:17 +01:00
parent 91911bc6e5
commit e5dc3f1bd4
8 changed files with 10 additions and 9 deletions

View File

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

View File

@@ -32,7 +32,7 @@
<template v-if="multiple">
<div class="flex items-center truncate mr-6">
<span class="truncate">
{{ selectedValues.join(', ') }}
{{ selectedValues?.join(', ') }}
</span>
</div>
</template>
@@ -122,6 +122,7 @@ export default {
return null
},
updateModelValue(newValues){
if (newValues === null) newValues = []
this.selectedValues = newValues
},
updateOptions (newItem) {

View File

@@ -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
}
}