From d6bca976f7f02571da422f98c79a045127e3beb4 Mon Sep 17 00:00:00 2001 From: Andrew Telnov Date: Tue, 12 Mar 2024 14:03:59 +0200 Subject: [PATCH] Add on this.data check in updateValueFromSurvey fix #7948 --- src/question_baseselect.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/question_baseselect.ts b/src/question_baseselect.ts index 12d0cc7ba2..71fb284bbd 100644 --- a/src/question_baseselect.ts +++ b/src/question_baseselect.ts @@ -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);