diff --git a/frappe/public/js/frappe/views/calendar/calendar.js b/frappe/public/js/frappe/views/calendar/calendar.js index 54d2bb2b6c..3845404907 100644 --- a/frappe/public/js/frappe/views/calendar/calendar.js +++ b/frappe/public/js/frappe/views/calendar/calendar.js @@ -318,10 +318,8 @@ frappe.views.Calendar = Class.extend({ let color, color_name; if(this.get_css_class) { color_name = this.color_map[this.get_css_class(d)]; - color_name = - frappe.ui.color.validate_hex(color_name) ? - color_name : - 'blue'; + color_name = frappe.ui.color.validate_hex(color_name) ? + color_name : 'blue'; d.backgroundColor = frappe.ui.color.get(color_name, 'extra-light'); d.textColor = frappe.ui.color.get(color_name, 'dark'); } else {