1
0
Эх сурвалжийг харах

fix(morph): currentNode can also be null, not just undefined, fixes #3728 (#3729)

Florian Stascheck 1 жил өмнө
parent
commit
b0b66d0408

+ 1 - 1
packages/morph/src/morph.js

@@ -403,7 +403,7 @@ class Block {
 
         let currentNode = this.startComment.nextSibling
 
-        while (currentNode !== undefined && currentNode !== this.endComment) {
+        while (currentNode && currentNode !== this.endComment) {
             children.push(currentNode)
 
             currentNode = currentNode.nextSibling