Type casting for if condition
This commit is contained in:
parent
3f43d2f768
commit
78a54ef0bb
1 changed files with 1 additions and 1 deletions
|
@ -692,7 +692,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
$('#notification').hide('bind');
|
$('#notification').hide('bind');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.data.is_unavailable === false) {
|
if (Boolean(Number(event.data.is_unavailable)) === false) {
|
||||||
// Prepare appointment data.
|
// Prepare appointment data.
|
||||||
event.data.end_datetime = Date.parseExact(
|
event.data.end_datetime = Date.parseExact(
|
||||||
event.data.end_datetime, 'yyyy-MM-dd HH:mm:ss')
|
event.data.end_datetime, 'yyyy-MM-dd HH:mm:ss')
|
||||||
|
|
Loading…
Reference in a new issue