diff --git a/kolibri/plugins/coach/assets/src/views/plan/LessonSummaryPage/LessonOptionsDropdownMenu.vue b/kolibri/plugins/coach/assets/src/views/plan/LessonSummaryPage/LessonOptionsDropdownMenu.vue index a28b1ce805b..72c5d609968 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/LessonSummaryPage/LessonOptionsDropdownMenu.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/LessonSummaryPage/LessonOptionsDropdownMenu.vue @@ -45,7 +45,9 @@ label: this.$tr('copyLessonAction'), value: 'COPY', }, - { label: this.coreString('deleteAction'), value: 'DELETE' }, + { label: this.coreString('deleteAction'), + value: 'DELETE', + }, ]; } diff --git a/kolibri/plugins/coach/assets/src/views/plan/LessonSummaryPage/ManageLessonModals.vue b/kolibri/plugins/coach/assets/src/views/plan/LessonSummaryPage/ManageLessonModals.vue index 0a91ddfc95b..5d72e657d49 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/LessonSummaryPage/ManageLessonModals.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/LessonSummaryPage/ManageLessonModals.vue @@ -115,8 +115,8 @@ const { id } = this.currentLesson; return LessonResource.deleteModel({ id }) .then(() => { - this.$router.replace( - this.$router.getRoute('PLAN_LESSONS_ROOT', { classId: this.classId }), + this.$router.replace( + this.$router.getRoute('PLAN_LESSONS_ROOT', this.id ? { classId: this.classId } : {}), () => { this.showSnackbarNotification('lessonDeleted'); }