Quick fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user