From 92d191dc5da1871a8b52a3648cf5d925e694aa76 Mon Sep 17 00:00:00 2001 From: adisposkofh Date: Mon, 27 Jul 2026 09:46:25 +0200 Subject: [PATCH] minor coodle fix --- public/js/components/Cis/Coodle/Coodle.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/js/components/Cis/Coodle/Coodle.js b/public/js/components/Cis/Coodle/Coodle.js index 6f3844793..93e7dc3cc 100644 --- a/public/js/components/Cis/Coodle/Coodle.js +++ b/public/js/components/Cis/Coodle/Coodle.js @@ -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 {