Resource Working Calendar

Hello,

When I have a task with multiple resources and load resource calendars. It throws an error. I’m not sure if what’s the cause for this. Is it from the data loaded in gantt or a bug in gantt? The calendars are in loaded in hours like [“08:00-09:00”] format and Im using dynamic_resource_calendars config. Maybe there’s a conflict during the merge?

TypeError: Cannot read properties of undefined (reading 'end')
    at Vn._intersectHourRanges (work_calendar_merger.js:78:29)
    at Vn._mergeHoursConfig (work_calendar_merger.js:127:9)
    at r (work_calendar_merger.js:162:57)
    at Vn.merge (work_calendar_merger.js:169:3)
    at Un.<anonymous> (calendar_manager.js:62:57)
    at Array.forEach (<anonymous>)
    at Un.mergeCalendars (calendar_manager.js:58:13)
    at dynamic_resource_calendars.js:15:18
    at Object.getCalendarIdFromMultipleResources (dynamic_resource_calendars.js:19:3)
    at Un._getOwnCalendar (calendar_manager.js:142:44)

Hello Cairo,
I couldn’t reproduce the issue in the following snippets:

https://snippet.dhtmlx.com/k3jnye6s

Probably, the issue is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
Please add your configuration to the following snippet and make sure that the issue is reproduced there:

Then, click on the Save button and send me the link.
Or send me a ready demo with all the necessary JavaScript and CSS files so that I can reproduce the issue locally.