This commit is contained in:
ditiqi 2025-02-21 17:41:09 +08:00
parent 55fa908391
commit c6213cdb37
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,7 @@ export const CourseSyllabus: React.FC<CourseSyllabusProps> = ({
<div className="flex-1 overflow-y-auto p-4">
<div className="space-y-4">
{sections.map((section) => (
{sections.map((section, index) => (
<SectionItem
key={section.id}
ref={(el) =>
@ -91,6 +91,7 @@ export const CourseSyllabus: React.FC<CourseSyllabusProps> = ({
section.id
] = el)
}
index={index + 1}
section={section}
isExpanded={expandedSections.includes(
section.id