Log graphql error when using `useCourseData`

This commit is contained in:
Daniel Egger 2023-10-15 21:49:55 +02:00
parent 4d3b46de59
commit b36754991e
2 changed files with 4 additions and 30 deletions

View File

@ -157,6 +157,10 @@ export function useCourseData(courseSlug: string) {
.toPromise();
resultPromise.then((result) => {
if (result.error) {
log.error(result.error);
}
course.value = result.data?.course as Course;
actionCompetences.value = result.data?.course
?.action_competences as ActionCompetence[];

View File

@ -60,33 +60,3 @@ class CourseQuery(graphene.ObjectType):
learning_content_document_list = graphene.Field(
LearningContentDocumentListObjectType
)
def resolve_learning_content_media_library(self, info):
return None
def resolve_learning_content_assignment(self, info):
return None
def resolve_learning_content_attendance_course(self, info):
return None
def resolve_learning_content_feedback(self, info):
return None
def resolve_learning_content_learning_module(self, info):
return None
def resolve_learning_content_placeholder(self, info):
return None
def resolve_learning_content_rich_text(self, info):
return None
def resolve_learning_content_test(self, info):
return None
def resolve_learning_content_video(self, info):
return None
def resolve_learning_content_document_list(self, info):
return None