Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Error on event creation when there's no calendar #611

Open
clochix opened this issue Oct 28, 2016 · 1 comment
Open

Error on event creation when there's no calendar #611

clochix opened this issue Oct 28, 2016 · 1 comment
Labels

Comments

@clochix
Copy link
Contributor

clochix commented Oct 28, 2016

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 clochix added the bug label Oct 28, 2016
@jsilvestre
Copy link
Contributor

Thank you for the report!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants