fix(backend): Diverse bugfixes omtrent LearningPathPage
This commit is contained in:
parent
27b9cdf833
commit
12b9f31f5f
9 changed files with 34 additions and 33 deletions
|
@ -47,10 +47,10 @@ export function useLearningObjectListForPathQuery(
|
|||
let learningObjects = [];
|
||||
for (let node of toValue(learningPath).nodesAsList) {
|
||||
learningObjects.push(
|
||||
learningObjectController.getHTML(node.learningobjectHruid, node.language, node.version)
|
||||
learningObjectController.getMetadata(node.learningobjectHruid, node.language, node.version)
|
||||
);
|
||||
}
|
||||
return learningObjects;
|
||||
return Promise.all(learningObjects);
|
||||
},
|
||||
enabled: () => Boolean(toValue(learningPath)),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue