diff --git a/web/src/components/CourseRedactor.vue b/web/src/components/CourseRedactor.vue index 608e20e6..a2fa6ced 100644 --- a/web/src/components/CourseRedactor.vue +++ b/web/src/components/CourseRedactor.vue @@ -948,10 +948,12 @@ console.log('data', i, now.getDay(), weekday, now, moment(now).format("D MMM")); - options.push({ - title: `${schedule[weekday]} (${this.weekdays[weekday]}, ${moment(now).format("D MMM")})`, - value: moment(now).format('YYYY-MM-DD') - }); + if(schedule[weekday]) { + options.push({ + title: `${schedule[weekday]} (${this.weekdays[weekday]}, ${moment(now).format("D MMM")})`, + value: moment(now).format('YYYY-MM-DD') + }); + } } console.log('options',options);