Closed JoshuaStorm closed 7 years ago
I broke it!
I accepted an invite and it said I wasn't meetable for this window. Then I clicked the "x" and i got all these errors:
Exception in template helper: TypeError: Cannot read property 'readyToFinalize' of undefined
Exception in template helper: TypeError: Cannot read property 'participants' of undefined
Exception in template helper: TypeError: Cannot read property 'participants' of undefined
same error for 'title', duration and 'suggestedMeetingTimes'
Darn. Thanks, I'll look into it!
similar issues just on decline of an incoming invite
Hmmm, I can't seem to quickly replicate these issues at the moment. I think I'll have to look into this tomorrow
Oops, actually found the issue. I think I can resolve it pretty quick!
Should be fixed now!
So since forever now, we had been doing almost all of our handling upon routing, but I am pretty sure that's an antipattern. I believe from the get-go I wanted to do everything on rendered, this switches to doing that and it seems to work well. I suspect this may silently resolve some weird issues.
This PR also resolves the issues we had with the front end errors, also resolving #259 while I was at it
I think this PR should be tested pretty extensively. Try to break it! 👍