diff --git a/packages/vue/src/templates/edu/PageEduLesson/PageEduLesson.vue b/packages/vue/src/templates/edu/PageEduLesson/PageEduLesson.vue index 81f38e3a..84265a6a 100644 --- a/packages/vue/src/templates/edu/PageEduLesson/PageEduLesson.vue +++ b/packages/vue/src/templates/edu/PageEduLesson/PageEduLesson.vue @@ -29,7 +29,9 @@ interface EduLessonProcedureBlocks { blocks: StreamfieldBlockData[] } export interface EduLessonProcedure { - procedure: EduLessonProcedureBlocks + sectionHeading?: string + steps?: EduLessonProcedureBlocks[] + stepsNumbering?: boolean } interface PageEduLessonObject extends PageEduResourcesObject { @@ -192,8 +194,8 @@ const consolidatedBlocks = computed(() => { } else if (section === 'procedures' && data.procedures?.length) { // get blocks in nested procedures data.procedures.forEach((item) => { - if (item.procedure?.blocks?.length) { - blocks.push(...item.procedure.blocks) + if (item.steps?.length) { + blocks.push(...item.steps) } }) } diff --git a/packages/vue/src/templates/edu/PageEduLesson/PageEduLessonSection.vue b/packages/vue/src/templates/edu/PageEduLesson/PageEduLessonSection.vue index 7648f90f..a9eef713 100644 --- a/packages/vue/src/templates/edu/PageEduLesson/PageEduLessonSection.vue +++ b/packages/vue/src/templates/edu/PageEduLesson/PageEduLessonSection.vue @@ -31,14 +31,14 @@ const props = withDefaults(defineProps(), { const { heading, blocks, image } = reactive(props) const anchorId = computed(() => { - return 'lesson_' + camelCase(heading.heading) + return 'lesson_' + camelCase(heading?.heading) })