This commit is contained in:
ditiqi 2025-02-23 21:41:17 +08:00
parent e212ec788b
commit 2ec36f32a8
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ export async function setCourseInfo({ data }: { data: Post }) {
sections.map((section) => section.id).includes(descendant.parentId)
);
});
sections.forEach((section) => {
section.lectures = lectures.filter(
(lecture) => lecture.parentId === section.id,