mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: video activity bug
This commit is contained in:
parent
ae7b7a7f93
commit
a0966e90e3
3 changed files with 49 additions and 39 deletions
|
|
@ -24,7 +24,9 @@ function VideoActivity({ activity, course }: { activity: any; course: any }) {
|
|||
}
|
||||
|
||||
React.useEffect(() => {
|
||||
console.log(activity)
|
||||
if (activity && activity.content && activity.content.uri) {
|
||||
setVideoId(getYouTubeEmbed(activity.content.uri).videoId)
|
||||
}
|
||||
}, [activity, org])
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue