Fix bug of adding tutor to lesson

This commit is contained in:
rotimi-best
2021-08-26 09:34:18 +03:00
parent 1b7fbaacf6
commit 26798f1e93
8 changed files with 50 additions and 50 deletions
+1 -3
View File
@@ -83,8 +83,6 @@
const { data } = await fetchCourse(courseId);
setCourseData(data);
});
$: console.log(`$lessons`, $lessons);
</script>
<CourseContainer>
@@ -169,7 +167,7 @@
{#if lessonEditing === index}
<Select
bind:value={lesson.profile}
options={[...$group.tutors.filter((t) => !!t.profile)]}
options={$group.tutors}
labelKey="fullname"
/>
{:else if !lesson.profile}