changed the checked value from status to isPublished (#882)
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
description: item.course.description ?? '',
|
||||
lessonCount: 0,
|
||||
totalStudents: 0,
|
||||
isPublished: item.course.status === 'ACTIVE',
|
||||
isPublished: !!item.course.isPublished,
|
||||
tags: []
|
||||
}))
|
||||
);
|
||||
@@ -176,7 +176,7 @@
|
||||
<p>{item.course.description}</p>
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
<CoursePublishBadge isPublished={item.course.status === 'ACTIVE'} />
|
||||
<CoursePublishBadge isPublished={!!item.course.isPublished} />
|
||||
</Table.Cell>
|
||||
{#if !$isStudentExperience}
|
||||
<Table.Cell class="text-center">
|
||||
|
||||
@@ -476,6 +476,7 @@ export async function getCoursesByCohort(
|
||||
coverImage: string | null;
|
||||
slug: string | null;
|
||||
status: string | null;
|
||||
isPublished: boolean | null;
|
||||
};
|
||||
}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user