test: fixed course creation

This commit is contained in:
Jannat Patel
2024-09-16 18:41:25 +05:30
parent 20c10f1645
commit 17d4973ab8
2 changed files with 1 additions and 21 deletions

View File

@@ -244,7 +244,7 @@ const lesson = createResource({
onSuccess(data) {
lessonProgress.value = data.membership?.progress
if (data.content) editor.value = renderEditor('editor', data.content)
if (JSON.parse(data.instructor_content)?.blocks?.length)
if (JSON.parse(data.instructor_content)?.blocks?.length > 1)
instructorEditor.value = renderEditor(
'instructor-content',
data.instructor_content