Skip to content

Commit e4d795e

Browse files
authored
fix: Add conditional check for form ref before validating its state. (baserow#4783)
1 parent b6fd1d1 commit e4d795e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

premium/web-frontend/modules/baserow_premium/components/field/GenerateAIValuesModal.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ export default {
226226
this.loading = false
227227
},
228228
valuesChanged() {
229-
this.isValid = this.$refs.form.isFormValid()
229+
if (this.$refs.form) {
230+
this.isValid = this.$refs.form.isFormValid()
231+
}
230232
},
231233
},
232234
}

0 commit comments

Comments
 (0)