From 78a54ef0bbe22574fa7543f818d146f5110a3885 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 4 Dec 2020 14:42:31 +0200 Subject: [PATCH] Type casting for if condition --- assets/js/backend_calendar_default_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/backend_calendar_default_view.js b/assets/js/backend_calendar_default_view.js index bc83e07d..00b10220 100755 --- a/assets/js/backend_calendar_default_view.js +++ b/assets/js/backend_calendar_default_view.js @@ -692,7 +692,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; $('#notification').hide('bind'); } - if (event.data.is_unavailable === false) { + if (Boolean(Number(event.data.is_unavailable)) === false) { // Prepare appointment data. event.data.end_datetime = Date.parseExact( event.data.end_datetime, 'yyyy-MM-dd HH:mm:ss')