Switcher bug

Asked by Giovanni
10 years ago.

Hi,
I get the following error when I switch from Monthly View to Event View:
Uncaught TypeError: Cannot read property 'lines' of undefined
DayPilot.Calendar.$4T @ daypilot.js:14
DayPilot.Calendar.$75 @ daypilot.js:14
DayPilot.Calendar.update @ daypilot.js:14
DayPilot.Switcher.addView.$2o.sendNavigate @ daypilot.js:8
navigate @ daypilot.js:8
DayPilot.Switcher.addNavigator.$2m.onTimeRangeSelected @ daypilot.js:8
$0C @ daypilot.js:29select @ daypilot.js:29
DayPilot.Switcher.navigator.updateMode @ daypilot.js:8
DayPilot.Switcher.show @ daypilot.js:8
DayPilot.Switcher.addTrigger.$2q.onClick @ daypilot.js:8

It happens only after a fresh start.
The default view is Scheduler, I switch to the Monthly and then to the Event Calendar and the error shows up.

Any idea of the possible cause?

Thanks,
Giovanni

Comment posted by Giovanni
10 years ago.

In version 8.1.1821 this problem is present.

I've solved it adding this code at line 14636 in daypilot-all.debug.js:
else {
this.events.list = [];
this._loadEvents();
}

Comment posted by Giovanni
10 years ago.

I've updated to latest versione and it works!

Thank you :)

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