SplitSession auch für Rahmenprogramme #36
@@ -48,14 +48,10 @@ function emptySlot() {
|
|||||||
async function enrichFrameworkSlotSections(slots) {
|
async function enrichFrameworkSlotSections(slots) {
|
||||||
const out = []
|
const out = []
|
||||||
for (const s of slots || []) {
|
for (const s of slots || []) {
|
||||||
const sec = normalizeUnitToForm({
|
const baseSecs = s.sections && s.sections.length ? s.sections : [defaultSection('Ablauf')]
|
||||||
sections: s.sections,
|
|
||||||
exercises: s.exercises,
|
|
||||||
phases: s.phases,
|
|
||||||
})
|
|
||||||
out.push({
|
out.push({
|
||||||
...s,
|
...s,
|
||||||
sections: await enrichSectionsWithVariants(sec),
|
sections: await enrichSectionsWithVariants(baseSecs),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return out
|
return out
|
||||||
|
|||||||
Reference in new issue
Block a user