Add tutor bug

This commit is contained in:
rotimi-best
2021-08-24 23:16:36 +03:00
parent eb70f7f40f
commit 1b7fbaacf6
2 changed files with 2 additions and 1 deletions
@@ -75,6 +75,7 @@ export function handleDelete(lessonId) {
}
export async function handleSaveLesson(lesson, course_id) {
console.log(`lesson`, lesson);
const newLesson = {
title: lesson.title,
lesson_at: lesson.lesson_at,
+1 -1
View File
@@ -169,7 +169,7 @@
{#if lessonEditing === index}
<Select
bind:value={lesson.profile}
options={$group.tutors}
options={[...$group.tutors.filter((t) => !!t.profile)]}
labelKey="fullname"
/>
{:else if !lesson.profile}