mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-23 20:29:35 +00:00
minor coodle fix
This commit is contained in:
@@ -59,8 +59,12 @@ export default {
|
||||
const surveyResponse = await this.$api.call(
|
||||
CoodleApi.getSurvey(surveyId),
|
||||
);
|
||||
this.survey = this.parseIncomingSurveyData(surveyResponse.data);
|
||||
this.view = "survey";
|
||||
if (surveyResponse.meta.status === "success") {
|
||||
this.survey = this.parseIncomingSurveyData(surveyResponse.data);
|
||||
this.view = "survey";
|
||||
} else {
|
||||
this.view = "activeSurveysTable";
|
||||
}
|
||||
},
|
||||
parseIncomingSurveyData(surveyData) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user