minor coodle fix

This commit is contained in:
adisposkofh
2026-07-27 09:46:25 +02:00
parent ae09eb712e
commit 92d191dc5d
+6 -2
View File
@@ -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 {