|
@@ -95,8 +95,12 @@ function evaluateItemsAndReturnEmptyIfXIfIsPresentAndFalseOnElement(component, e
|
|
let items = component.evaluateReturnExpression(el, iteratorNames.items, extraVars)
|
|
let items = component.evaluateReturnExpression(el, iteratorNames.items, extraVars)
|
|
|
|
|
|
// This adds support for the `i in n` syntax.
|
|
// This adds support for the `i in n` syntax.
|
|
- if (isNumeric(items) && items > 0) {
|
|
|
|
- items = Array.from(Array(items).keys(), i => i + 1)
|
|
|
|
|
|
+ if (isNumeric(items)) {
|
|
|
|
+ if(items > 0) {
|
|
|
|
+ items = Array.from(Array(items).keys(), i => i + 1)
|
|
|
|
+ } else {
|
|
|
|
+ items = []
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
return items
|
|
return items
|