1
0

fix: don't try to validate nonexisting fields

This commit is contained in:
kolaente
2022-02-26 12:35:09 +01:00
parent 731506fab7
commit b83cec2f0e

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