I think I've found a bug when using conditions in an event handler. Perhaps there's a better way for me to do this. So I have an object called ServiceProvider that can reference an ApplicationUser. When it does, I want the reference to the ApplicationUser set in the ServiceProvider object, but if not, then just save the ServiceProvider object by itself. The problem though is that the second call to createServiceProvider errors, because the second call doesn't set the variable type (var).
Here's two pictures, first the setup, then the code it generates, you'll see that it doesn't reset the var on the second use of createServiceProvider. If there's a better way to do this, please let me know.
Thanks for the report @kgordon! We will do our best to include fix and release it before the end of this week.
1 Like