Skip to content

Commit

Permalink
Add on this.data check in updateValueFromSurvey fix #7948
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Mar 12, 2024
1 parent 2f31f00 commit d6bca97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/question_baseselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,9 @@ export class QuestionSelectBase extends Question {
newComment = this.getCommentFromValue(newValue);
newValue = this.setOtherValueIntoValue(newValue);
} else {
newComment = this.data.getComment(this.getValueName());
if(this.data) {
newComment = this.data.getComment(this.getValueName());
}
}
}
super.updateValueFromSurvey(newValue, clearData);
Expand Down

0 comments on commit d6bca97

Please sign in to comment.