Always display survey title from JSON, never from model
This commit is contained in:
parent
3a64365f7d
commit
eda5653477
|
|
@ -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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue