Merge remote-tracking branch 'origin/feature/own-learning-objects' into feature/own-learning-objects
This commit is contained in:
commit
67f8b3e157
7 changed files with 61 additions and 75 deletions
|
@ -88,6 +88,6 @@ export function isTransitionPossible(transition: LearningPathTransition, submitt
|
|||
if (submitted === null) {
|
||||
return false; // If the transition is not unconditional and there was no submission, the transition is not possible.
|
||||
}
|
||||
const match = JSONPath({ path: transition.condition, json: {submission: submitted} })
|
||||
const match = JSONPath({ path: transition.condition, json: { submission: submitted } });
|
||||
return match.length === 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue