fix: don't try to validate nonexisting fields
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2022-02-26 12:35:09 +01:00
parent 731506fab7
commit b83cec2f0e
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

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