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

View File

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