Always display survey title from JSON, never from model

This commit is contained in:
Ramon Wenger 2019-07-22 11:36:08 +02:00
parent 3a64365f7d
commit eda5653477
1 changed files with 2 additions and 1 deletions

View File

@ -86,13 +86,14 @@
result({data, loading, networkStatus}) { result({data, loading, networkStatus}) {
if (!loading) { if (!loading) {
let json = JSON.parse(data.survey.data); let json = JSON.parse(data.survey.data);
json.showTitle = false;
let answer = {}; let answer = {};
if (data.survey.answer && data.survey.answer.data) { if (data.survey.answer && data.survey.answer.data) {
answer = JSON.parse(data.survey.answer.data); answer = JSON.parse(data.survey.answer.data);
} }
this.survey = this.initSurvey(json, answer); this.survey = this.initSurvey(json, answer);
this.title = data.survey.title; this.title = json.title;
} }
}, },
} }