Просмотр исходного кода

integers < 0 shouldn't be allowed

Peter Minne 4 лет назад
Родитель
Сommit
db11759c1e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/directives/for.js

+ 1 - 1
src/directives/for.js

@@ -98,7 +98,7 @@ function evaluateItemsAndReturnEmptyIfXIfIsPresentAndFalseOnElement(component, e
     if (isNumeric(items)) {
         if(items > 0) {
             items = Array.from(Array(items).keys(), i => i + 1)
-        } else {
+        } else if(items === 0) {
             items = []
         }
     }