diff --git a/frontend/src/pages/Batches.vue b/frontend/src/pages/Batches.vue index 335ae2167..935ddbf08 100644 --- a/frontend/src/pages/Batches.vue +++ b/frontend/src/pages/Batches.vue @@ -163,7 +163,7 @@ onMounted(() => { const batches = createResource({ doctype: 'LMS Batch', url: 'lms.lms.utils.get_batches', - cache: ['batches', user.data?.email], + cache: ['batches', user.data?.email || ''], auto: true, }) diff --git a/frontend/src/pages/Courses.vue b/frontend/src/pages/Courses.vue index 16ae3ba08..54bf36872 100644 --- a/frontend/src/pages/Courses.vue +++ b/frontend/src/pages/Courses.vue @@ -71,7 +71,7 @@