diff --git a/src/lib/components/Course/components/Lesson/Materials/Video/LocalVideo.svelte b/src/lib/components/Course/components/Lesson/Materials/Video/LocalVideo.svelte index c26614fe..97d0c0ee 100644 --- a/src/lib/components/Course/components/Lesson/Materials/Video/LocalVideo.svelte +++ b/src/lib/components/Course/components/Lesson/Materials/Video/LocalVideo.svelte @@ -121,7 +121,7 @@ Oops 😬, couldn’t upload video

- Sorry we video wasn’t uploaded. The file size is too big,
maximum size is 20 MB. Try again! + Sorry we video wasn’t uploaded. The file size is too big,
maximum size is 50 MB. Try again!

fileInput?.click()} /> diff --git a/src/lib/components/Course/components/Lesson/Materials/index.svelte b/src/lib/components/Course/components/Lesson/Materials/index.svelte index 35ae7677..9c6c8a87 100644 --- a/src/lib/components/Course/components/Lesson/Materials/index.svelte +++ b/src/lib/components/Course/components/Lesson/Materials/index.svelte @@ -54,12 +54,14 @@ // problem: after we save an uploaded video, async function saveLesson() { const { data } = await fetchLesson(lessonId); - const materials = merge(data, $lesson.materials); + if (data?.videos?.length === $lesson.materials.videos.length) { + const materials = merge(data, $lesson.materials); - lesson.update((l) => ({ - ...l, - materials - })); + lesson.update((l) => ({ + ...l, + materials + })); + } handleUpdateLessonMaterials($lesson, lessonId); } diff --git a/src/lib/components/Navigation/app.svelte b/src/lib/components/Navigation/app.svelte index 00fde2b9..d124567f 100644 --- a/src/lib/components/Navigation/app.svelte +++ b/src/lib/components/Navigation/app.svelte @@ -36,7 +36,7 @@ } -