Merge remote-tracking branch 'origin/feature/own-learning-objects' into feature/own-learning-objects

This commit is contained in:
Gerald Schmittinger 2025-03-11 12:18:21 +01:00
commit 67f8b3e157
7 changed files with 61 additions and 75 deletions

View file

@ -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;
}