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