diff --git a/client/src/pages/learningPath/learningContentPage/feedback/FeedbackBase.vue b/client/src/pages/learningPath/learningContentPage/feedback/FeedbackBase.vue index c76bf24b..0da667ea 100644 --- a/client/src/pages/learningPath/learningContentPage/feedback/FeedbackBase.vue +++ b/client/src/pages/learningPath/learningContentPage/feedback/FeedbackBase.vue @@ -8,6 +8,8 @@ import { useRouteQuery } from "@vueuse/router"; import log from "loglevel"; import { computed, onMounted, reactive, ref } from "vue"; import { useCourseSessionDetailQuery, useCurrentCourseSession } from "@/composables"; +import { bustItGetCache } from "@/fetchHelpers"; +import { useUserStore } from "@/stores/user"; const props = defineProps<{ content: LearningContentFeedbackVV | LearningContentFeedbackUK; @@ -131,6 +133,9 @@ function mutateFeedback(data: FeedbackData, submit = false) { feedbackSubmitted.value = result.data?.send_feedback?.feedback_response?.submitted || false; } + bustItGetCache( + `/api/course/completion/${courseSession.value.id}/${useUserStore().id}/` + ); }) .catch((e) => log.error(e)); }