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