Type casting for if condition

This commit is contained in:
Alex Tselegidis 2020-12-04 14:42:31 +02:00
parent 3f43d2f768
commit 78a54ef0bb

View file

@ -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')