fix: lesson duplicate video rendering

This commit is contained in:
Jannat Patel
2024-04-22 17:18:53 +05:30
parent b3c76e311c
commit 953eb74235

View File

@@ -298,7 +298,7 @@ watch(
[newChapterNumber, newLessonNumber],
[oldChapterNumber, oldLessonNumber]
) => {
if (newChapterNumber && newLessonNumber) {
if (newChapterNumber || newLessonNumber) {
lesson.submit({
chapter: newChapterNumber,
lesson: newLessonNumber,