cozy-calendar icon indicating copy to clipboard operation
cozy-calendar copied to clipboard

Error on event creation when there's no calendar

Open clochix opened this issue 8 years ago • 1 comments

After deleting all its calendars, a user is unable to create events. Creating a new calendar solves the issue. Here's the client side exception:

[2016-10-27 17:02:18:696] error - calendar:client | {"type":"error","error":{"msg":"Uncaught TypeError: Cannot read property 'get' of undefined","name":"TypeError","full":"TypeError: Cannot read property 'get' of undefined","stack":"TypeError: Cannot read property 'get' of undefined\n    at Event.module.exports.ScheduleItem.setCalendar (https://stentorignoze.cozycloud.cc/apps/calendar/javascripts/app.js:7282:23)\n    at MainPopoverScreen.module.exports.MainPopoverScreen.onAddClicked (https://stentorignoze.cozycloud.cc/apps/calendar/javascripts/app.js:10698:18)\n    at HTMLDivElement.dispatch (https://stentorignoze.cozycloud.cc/apps/calendar/javascripts/vendor.js:4523:9)\n    at HTMLDivElement.elemData.handle (https://stentorignoze.cozycloud.cc/apps/calendar/javascripts/vendor.js:4209:28)"},"url":"https://stentorignoze.cozycloud.cc/apps/calendar/javascripts/app.js","line":7282,"col":23,"href":"https://stentorignoze.cozycloud.cc/apps/calendar/#month/2016/10"}
[2016-10-27 17:02:18:696] error - calendar:client | TypeError: Cannot read property 'get' of undefined
    at Event.module.exports.ScheduleItem.setCalendar (https://stentorignoze.cozycloud.cc/apps/calendar/javascripts/app.js:7282:23)
    at MainPopoverScreen.module.exports.MainPopoverScreen.onAddClicked (https://stentorignoze.cozycloud.cc/apps/calendar/javascripts/app.js:10698:18)
    at HTMLDivElement.dispatch (https://stentorignoze.cozycloud.cc/apps/calendar/javascripts/vendor.js:4523:9)
    at HTMLDivElement.elemData.handle (https://stentorignoze.cozycloud.cc/apps/calendar/javascripts/vendor.js:4209:28)

clochix avatar Oct 28 '16 20:10 clochix

Thank you for the report!

jsilvestre avatar Oct 31 '16 09:10 jsilvestre