Closed treyseals closed 5 years ago
Thanks for calling this out. You are right. I'll have a fix for this in the next update, but if you want a local fix you can change this line:
https://github.com/BorisMoore/jsviews/blob/master/jsviews.js#L2447
from
var finalElse = !arguments.length,
to
var finalElse = !this.tagCtx.args.length,
Let me know if that doesn't work for you...
This has been fixed in release v0.9.91.
When a props (or for) loop is converted with no results the else statement isn't being processed as expected.