CLASSROOMIO-T-95: Upload to S3 and Muse AI

This commit is contained in:
Rotimi Best
2023-08-10 12:46:14 +01:00
parent ec807a1db9
commit 0ff76e4aa8
21 changed files with 460 additions and 206 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
import CourseContainer from '$lib/components/CourseContainer/index.svelte';
import { setCourse } from '$lib/components/Course/store';
import { fetchCourse } from '$lib/utils/services/courses';
import { browser } from '$app/environment';
export let data;
const { courseId } = data;
@@ -10,7 +11,7 @@
let prevCourseId = '';
async function onCourseIdChange(courseId = '') {
if (!courseId || prevCourseId === courseId) return;
if (!courseId || prevCourseId === courseId || !browser) return;
const { data: _data } = await fetchCourse(courseId);