mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
Various minor JS errors in calendar_default_view.js
This commit is contained in:
parent
ebb682f518
commit
6304391fd9
1 changed files with 2 additions and 2 deletions
|
@ -211,7 +211,7 @@ App.Utils.CalendarDefaultView = (function () {
|
|||
$popoverTarget.popover('dispose');
|
||||
}
|
||||
|
||||
if (lastFocusedEventData.extendedProps.data.workingPlanException) {
|
||||
if (lastFocusedEventData.extendedProps.data.workingPlanException !== undefined) {
|
||||
const providerId = $selectFilterItem.val();
|
||||
|
||||
const provider = vars('available_providers').find(
|
||||
|
@ -1256,7 +1256,7 @@ App.Utils.CalendarDefaultView = (function () {
|
|||
calendarEventSource.push(unavailabilityEvent);
|
||||
});
|
||||
|
||||
response.blocked_periods.forEach((blockedPeriod) => {
|
||||
response?.blocked_periods?.forEach((blockedPeriod) => {
|
||||
const blockedPeriodEvent = {
|
||||
title: blockedPeriod.name,
|
||||
start: moment(blockedPeriod.start_datetime).toDate(),
|
||||
|
|
Loading…
Reference in a new issue