@touchpoll/tp-survey 0.0.44 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1888,6 +1888,10 @@ class TpSurveyCoreService {
|
|
|
1888
1888
|
const startedAtArray = answerList.filter(answer => answer.StartedAt > 0).map(answer => answer.StartedAt);
|
|
1889
1889
|
//берём минимальное
|
|
1890
1890
|
this._interview.startedAt = Math.min(...startedAtArray);
|
|
1891
|
+
//Заполним массив показанных вопросов, чтобы корректно работала кнопка назад и правильно сохранялось см. #finishInterview
|
|
1892
|
+
answerList.filter(answer => answer.AnswerValue !== MISSING_VALUE).forEach(oldAnswer => {
|
|
1893
|
+
this.#displayedQuestions.push(oldAnswer.QuestionGUID);
|
|
1894
|
+
});
|
|
1891
1895
|
}
|
|
1892
1896
|
#changeCurrentQuestion(newQuestion) {
|
|
1893
1897
|
const currentQuestion = this.#currentQuestion.value;
|