SplitSession auch für Rahmenprogramme #36

Merged
Lars merged 11 commits from develop into main 2026-05-16 09:02:51 +02:00
Showing only changes of commit 736656bde8 - Show all commits

View File

@ -48,14 +48,10 @@ function emptySlot() {
async function enrichFrameworkSlotSections(slots) {
const out = []
for (const s of slots || []) {
const sec = normalizeUnitToForm({
sections: s.sections,
exercises: s.exercises,
phases: s.phases,
})
const baseSecs = s.sections && s.sections.length ? s.sections : [defaultSection('Ablauf')]
out.push({
...s,
sections: await enrichSectionsWithVariants(sec),
sections: await enrichSectionsWithVariants(baseSecs),
})
}
return out