diff --git a/erpnext/public/js/education/lms/lms.js b/erpnext/public/js/education/lms/lms.js index 5fb7b7d558a..15370d06ecd 100644 --- a/erpnext/public/js/education/lms/lms.js +++ b/erpnext/public/js/education/lms/lms.js @@ -9,9 +9,8 @@ import './call'; Vue.use(VueRouter) var store = { - isLogin: false, enrolledPrograms: [], - enrolledCourses: {} + enrolledCourses: [] } frappe.ready(() => { diff --git a/erpnext/public/js/education/lms/routes.js b/erpnext/public/js/education/lms/routes.js index 7f06c78e514..d5aab292364 100644 --- a/erpnext/public/js/education/lms/routes.js +++ b/erpnext/public/js/education/lms/routes.js @@ -28,7 +28,8 @@ const routes = [{ component: ContentPage, props: true, beforeEnter: (to, from, next) => { - if (lms.store.checkProgramEnrollment(this.program_name)) { + console.log(from.params.program_name) + if (lms.store.checkProgramEnrollment(from.params.program_name)) { next() } else { next({