Przeglądaj źródła

fix v-repeat when value is falsy

Evan You 11 lat temu
rodzic
commit
72be71087a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/directives/repeat.js

+ 1 - 1
src/directives/repeat.js

@@ -117,7 +117,7 @@ module.exports = {
       )
       return
     }
-    this.converted = data._converted
+    this.converted = data && data._converted
     this.vms = this.diff(data || [], this.vms)
     // update v-ref
     if (this.childId) {