From 80435bd5220686e189f14e0e4de3a230d20b641b Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 19 Mar 2024 07:11:16 +0000 Subject: [PATCH] Fallback value --- assets/js/utils/calendar_table_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }