fix: reload notes when moving to another lesson

This commit is contained in:
Jannat Patel
2025-08-06 11:13:16 +05:30
parent 77ecb02a17
commit 027dd93fb5
3 changed files with 13 additions and 15 deletions

View File

@@ -532,7 +532,7 @@ watch(
await nextTick()
resetLessonState(newChapterNumber, newLessonNumber)
startTimer()
notes.reload()
updateNotes()
}
}
)
@@ -784,14 +784,12 @@ const scrollDiscussionsIntoView = () => {
}
const updateNotes = () => {
if (!notes.filters?.lesson) {
notes.update({
filters: {
lesson: lesson.data?.name,
member: user.data?.name,
},
})
}
notes.update({
filters: {
lesson: lesson.data?.name,
member: user.data?.name,
},
})
notes.reload()
}