Add tutor bug
This commit is contained in:
@@ -75,6 +75,7 @@ export function handleDelete(lessonId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function handleSaveLesson(lesson, course_id) {
|
export async function handleSaveLesson(lesson, course_id) {
|
||||||
|
console.log(`lesson`, lesson);
|
||||||
const newLesson = {
|
const newLesson = {
|
||||||
title: lesson.title,
|
title: lesson.title,
|
||||||
lesson_at: lesson.lesson_at,
|
lesson_at: lesson.lesson_at,
|
||||||
|
|||||||
@@ -169,7 +169,7 @@
|
|||||||
{#if lessonEditing === index}
|
{#if lessonEditing === index}
|
||||||
<Select
|
<Select
|
||||||
bind:value={lesson.profile}
|
bind:value={lesson.profile}
|
||||||
options={$group.tutors}
|
options={[...$group.tutors.filter((t) => !!t.profile)]}
|
||||||
labelKey="fullname"
|
labelKey="fullname"
|
||||||
/>
|
/>
|
||||||
{:else if !lesson.profile}
|
{:else if !lesson.profile}
|
||||||
|
|||||||
Reference in New Issue
Block a user