fix: don't try to validate nonexisting fields
This commit is contained in:
parent
731506fab7
commit
b83cec2f0e
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ export default {
|
|||
validateField() {
|
||||
// using computed so that debounced function definition stays
|
||||
return useDebounceFn((field) => {
|
||||
this[`${field}Valid`] = this.$refs[field].value !== ''
|
||||
this[`${field}Valid`] = this.$refs[field]?.value !== ''
|
||||
}, 100)
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue