We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93bad19 commit d3a64f0Copy full SHA for d3a64f0
src/models/QuestionModel.js
@@ -134,7 +134,7 @@ export default class QuestionModel {
134
135
// Check if we have an answer already (when we have a pre-filled form)
136
// and set the answered property accordingly
137
- if (!this.required && typeof options.answer !== 'undefined') {
+ if (!this.required && options && typeof options.answer !== 'undefined') {
138
this.answered = true
139
} else if (this.answer && (!this.multiple || this.answer.length)) {
140
0 commit comments