|
@@ -201,13 +201,17 @@
|
|
|
*/
|
|
|
getUserShortAnswer() {
|
|
|
return function (questionIndex) {
|
|
|
+ return this.row.user_answers && this.row.user_answers[questionIndex] ? this.row.user_answers[questionIndex].answer : '';
|
|
|
+
|
|
|
if (this.row.user_answers && this.row.user_answers[questionIndex]) {
|
|
|
let html = '';
|
|
|
- if (this.row.user_answers[questionIndex].answer_score) {
|
|
|
+ if (this.row.user_answers[questionIndex].answer_score.length) {
|
|
|
for (let i = 0; i < this.row.user_answers[questionIndex].answer_score.length; i++) {
|
|
|
let short_user_answer = this.row.user_answers[questionIndex].answer_score[i];
|
|
|
html += '<p class="fill-answer-item">' + short_user_answer.answer + '</p>';
|
|
|
}
|
|
|
+ }else{
|
|
|
+ html = this.row.user_answers[questionIndex].answer;
|
|
|
}
|
|
|
return html
|
|
|
// return this.row.user_answers[questionIndex].answer.join(',');
|