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