Update src/pages/course/[slug]/index.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Austin Kelsay 2025-07-06 17:36:59 -05:00 committed by GitHub
parent 41afe6a8ae
commit da0c6cad2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -285,7 +285,7 @@ const Course = () => {
{isMobileView && ( {isMobileView && (
<div className={`${activeTab === 'lessons' ? 'block' : 'hidden'}`}> <div className={`${activeTab === 'lessons' ? 'block' : 'hidden'}`}>
<CourseSidebar <CourseSidebar
lessons={uniqueLessons} lessons={[...uniqueLessons].sort((a, b) => a.index - b.index)}
activeIndex={activeIndex} activeIndex={activeIndex}
onLessonSelect={handleLessonSelect} onLessonSelect={handleLessonSelect}
completedLessons={completedLessons} completedLessons={completedLessons}