CLASSROOMIO-T-131: Conditional for empty string
CLASSROOMIO-T-131: Resolved Feedbacks CLASSROOMIO-T-131: Resolved Fixes CLASSROOMIO-T-131: Conditional for empty string Co-authored-by: Tunji Adeyemi <tunji@digdippa.com> Merge-request: CLASSROOMIO-MR-57 Merged-by: Best Admin <best@digdippa.com>
This commit is contained in:
@@ -85,6 +85,7 @@
|
|||||||
try {
|
try {
|
||||||
const lessonVideo = $lesson.materials.videos.map((video) => video.link);
|
const lessonVideo = $lesson.materials.videos.map((video) => video.link);
|
||||||
const lessonNumber = getLessonOrder(currentLesson.id);
|
const lessonNumber = getLessonOrder(currentLesson.id);
|
||||||
|
const slideUrl = $lesson.materials.slide_url || '';
|
||||||
|
|
||||||
const response = await fetch('https://classroomio-server.fly.dev/downloadLesson', {
|
const response = await fetch('https://classroomio-server.fly.dev/downloadLesson', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@@ -95,11 +96,11 @@
|
|||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
title: currentLesson.title,
|
title: currentLesson.title,
|
||||||
number: lessonNumber,
|
number: lessonNumber,
|
||||||
orgName: `${$currentOrg.name}`,
|
orgName: $currentOrg.name,
|
||||||
note: `${$lesson.materials.note}`,
|
note: $lesson.materials.note,
|
||||||
slideUrl: `${$lesson.materials.slide_url}`,
|
slideUrl: slideUrl,
|
||||||
video: lessonVideo,
|
video: lessonVideo,
|
||||||
courseTitle: `${$course.title}`
|
courseTitle: $course.title
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user