Quick fix

This commit is contained in:
Rotimi Best
2023-08-24 18:13:12 +01:00
parent 18f6b36ace
commit f57ecda6db
2 changed files with 2 additions and 4 deletions
@@ -73,7 +73,7 @@
tabs = tabs.map((tab) => { tabs = tabs.map((tab) => {
const badgeValue = const badgeValue =
tab.value === 1 tab.value === 1
? note.length > 15 ? note?.length > 15
? 1 ? 1
: 0 : 0
: tab.value === 2 : tab.value === 2
@@ -228,7 +228,7 @@
onChange={(c) => ($lesson.materials.note = c)} onChange={(c) => ($lesson.materials.note = c)}
/> />
</div> </div>
{:else if $lesson.materials.note.length > 15} {:else if $lesson.materials?.note?.length > 15}
<div> <div>
{@html $lesson.materials.note} {@html $lesson.materials.note}
</div> </div>
@@ -41,9 +41,7 @@
} }
function setQuillHTML(html) { function setQuillHTML(html) {
console.log('outside if');
if (quill) { if (quill) {
console.log('inside if', html);
quill.setHTML(html); quill.setHTML(html);
} }
} }