Explorar el Código

integers < 0 shouldn't be allowed

Peter Minne hace 4 años
padre
commit
db11759c1e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 = []
         }
     }