fix(backend): Backend returns conditions of transitions again

This commit is contained in:
Gerald Schmittinger 2025-05-14 22:46:25 +02:00
parent 300c0b721d
commit 1deb58eda0

View file

@ -180,6 +180,7 @@ function convertTransition(
return {
_id: String(index), // Retained for backwards compatibility. The index uniquely identifies the transition within the learning path.
default: false, // We don't work with default transitions but retain this for backwards compatibility.
condition: transition.condition,
next: {
_id: nextNode._id ? nextNode._id + index : v4(), // Construct a unique ID for the transition for backwards compatibility.
hruid: transition.next.learningObjectHruid,