Log graphql error when using `useCourseData`
This commit is contained in:
parent
4d3b46de59
commit
b36754991e
|
|
@ -157,6 +157,10 @@ export function useCourseData(courseSlug: string) {
|
||||||
.toPromise();
|
.toPromise();
|
||||||
|
|
||||||
resultPromise.then((result) => {
|
resultPromise.then((result) => {
|
||||||
|
if (result.error) {
|
||||||
|
log.error(result.error);
|
||||||
|
}
|
||||||
|
|
||||||
course.value = result.data?.course as Course;
|
course.value = result.data?.course as Course;
|
||||||
actionCompetences.value = result.data?.course
|
actionCompetences.value = result.data?.course
|
||||||
?.action_competences as ActionCompetence[];
|
?.action_competences as ActionCompetence[];
|
||||||
|
|
|
||||||
|
|
@ -60,33 +60,3 @@ class CourseQuery(graphene.ObjectType):
|
||||||
learning_content_document_list = graphene.Field(
|
learning_content_document_list = graphene.Field(
|
||||||
LearningContentDocumentListObjectType
|
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
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue