mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-18 20:09:25 +00:00
fix: handle case for missing thumbnail type in course component
This commit is contained in:
parent
63cb3bfd59
commit
19fd5ef05c
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ const CourseClient = (props: any) => {
|
|||
<div className="w-full md:w-3/4 space-y-4">
|
||||
{(() => {
|
||||
const showVideo = course.thumbnail_type === 'video' || (course.thumbnail_type === 'both' && activeThumbnailType === 'video');
|
||||
const showImage = course.thumbnail_type === 'image' || (course.thumbnail_type === 'both' && activeThumbnailType === 'image');
|
||||
const showImage = course.thumbnail_type === 'image' || (course.thumbnail_type === 'both' && activeThumbnailType === 'image') || !course.thumbnail_type;
|
||||
|
||||
if (showVideo && course.thumbnail_video) {
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue