search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot Scheduler - Uncaught TypeError: Cannot set properties of undefined (setting 'lines') when deleting milestone

Asked by Leo
1 month ago.

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);
Comment posted by Dan Letecky [DayPilot]
1 month ago.

I confirm the bug. It happens when eventUpdateInplaceOptimization is enabled.

I’ll keep you updated.

Answer posted by Dan Letecky [DayPilot]
1 month ago.

This issue should be fixed now in the latest sandbox build (2024.1.5891):

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.