diff --git a/assets/js/utils/calendar_table_view.js b/assets/js/utils/calendar_table_view.js index 0a0279f4..0f1e9490 100755 --- a/assets/js/utils/calendar_table_view.js +++ b/assets/js/utils/calendar_table_view.js @@ -953,7 +953,7 @@ App.Utils.CalendarTableView = (function () { * @param {Object[]} blockedPeriods Contains the blocked period data. */ function createBlockedPeriods($providerColumn, blockedPeriods) { - if (blockedPeriods.length === 0) { + if (blockedPeriods?.length === 0) { return; }