If I invoke FlowRouter.go() inside an event handler upon a successful form submission, I get the dreaded:
Exception in template helper: TypeError: Cannot read property 'first' of undefined
I do not get that error if I do not call FlowRouter.go().
Here is a two minute screencast illustrating the problem:
I would prefer not to do the “guard” hack; that does not seem like correct Meteor coding. If I do not have the console open, I don’t notice the error, but that also doesn’t seem like correct Meteor coding.
I do not understand why the helper functions for the Edit page are being called when FlowRouter is redirecting away from that page.
Thanks for any insight you can provide.