diff --git a/src/lib/components/Course/components/Lesson/Materials/index.svelte b/src/lib/components/Course/components/Lesson/Materials/index.svelte index 50752aec..2990fccd 100644 --- a/src/lib/components/Course/components/Lesson/Materials/index.svelte +++ b/src/lib/components/Course/components/Lesson/Materials/index.svelte @@ -73,7 +73,7 @@ tabs = tabs.map((tab) => { const badgeValue = tab.value === 1 - ? note.length > 15 + ? note?.length > 15 ? 1 : 0 : tab.value === 2 @@ -228,7 +228,7 @@ onChange={(c) => ($lesson.materials.note = c)} /> - {:else if $lesson.materials.note.length > 15} + {:else if $lesson.materials?.note?.length > 15}
{@html $lesson.materials.note}
diff --git a/src/lib/components/TextEditor/index.svelte b/src/lib/components/TextEditor/index.svelte index 7e13fb9e..93c90fa7 100644 --- a/src/lib/components/TextEditor/index.svelte +++ b/src/lib/components/TextEditor/index.svelte @@ -41,9 +41,7 @@ } function setQuillHTML(html) { - console.log('outside if'); if (quill) { - console.log('inside if', html); quill.setHTML(html); } }