Remove Legacy Objectives from ModuleDetailsQuery

This commit is contained in:
Lorenz Padberg 2024-04-29 12:20:34 +02:00
parent 56624997da
commit 830ca5edca
2 changed files with 2 additions and 10 deletions

View File

@ -61,7 +61,7 @@
</div>
<h3
v-if="$flavor.showObjectivesTitle && module.objectiveGroups.length && showObjectives"
v-if="$flavor.showObjectivesTitle && module.objectiveGroups?.length && showObjectives"
id="objectives"
>
<span>Lernziele</span>
@ -69,7 +69,7 @@
<div
class="module__objective-groups"
v-if="module.objectiveGroups.length && showObjectives"
v-if="module.objectiveGroups?.length && showObjectives"
>
<objective-groups
:groups="languageCommunicationObjectiveGroups"

View File

@ -1,18 +1,10 @@
#import "gql/fragments/chapterParts.gql"
#import "gql/fragments/objectiveGroupParts.gql"
#import "gql/fragments/objectiveParts.gql"
#import "gql/fragments/moduleParts.gql"
#import "gql/fragments/contentBlockInterfaceParts.gql"
#import "gql/fragments/contentBlockParts.gql"
query ModuleDetailsQuery($slug: String, $id: ID) {
module(slug: $slug, id: $id) {
...ModuleLegacyParts
objectiveGroups {
...ObjectiveGroupParts
objectives {
...ObjectiveParts
}
}
chapters {
...ChapterParts
contentBlocks {