Fix timeline chapter click by passing missing props to VideoPlayer
- Pass playerRef, currentTime, accentColor, and setCurrentTime to VideoPlayer - This fixes "Cannot read properties of undefined (reading 'current')" error - Timeline chapter items can now successfully jump to specific timestamps 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -597,7 +597,13 @@ export default function Bootcamp() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<VideoPlayer lesson={selectedLesson} />
|
<VideoPlayer
|
||||||
|
lesson={selectedLesson}
|
||||||
|
playerRef={playerRef}
|
||||||
|
currentTime={currentTime}
|
||||||
|
accentColor={accentColor}
|
||||||
|
setCurrentTime={setCurrentTime}
|
||||||
|
/>
|
||||||
|
|
||||||
{selectedLesson.content && (
|
{selectedLesson.content && (
|
||||||
<Card className="border-2 border-border mb-6">
|
<Card className="border-2 border-border mb-6">
|
||||||
|
|||||||
Reference in New Issue
Block a user