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) => {
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)}
/>
</div>
{:else if $lesson.materials.note.length > 15}
{:else if $lesson.materials?.note?.length > 15}
<div>
{@html $lesson.materials.note}
</div>
@@ -41,9 +41,7 @@
}
function setQuillHTML(html) {
console.log('outside if');
if (quill) {
console.log('inside if', html);
quill.setHTML(html);
}
}