When deleting a milestone from a DayPilot Scheduler (2024.1.5882) instance with the code below, we always receive an Uncaught TypeError: Cannot set properties of undefined (setting 'lines') when deleting milestone
at DayPilot2.Scheduler.ap (daypilot-pro-javascript.js?v=ec082dd1:17698:26) at events.remove (daypilot-pro-javascript.js?v=ec082dd1:15602:21)
const milestoneToRemove = this.scheduler.events.find(milestone.id);
this.scheduler.events.remove(milestoneToRemove);