We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 698a72d commit b3e4d8cCopy full SHA for b3e4d8c
src/data/fill.js
@@ -3,7 +3,7 @@
3
function fill (dataTree) {
4
function fillRec (node) {
5
// we compute all the descendants vdom under the current node
6
- let descendantsVDOM = [], descendantsVDOMData = [];
+ let descendantsVDOM = [ node.vdom ], descendantsVDOMData = [ node.data ];
7
const newChildren = node.data.children.map(node => {
8
const res = fillRec(node);
9
if (descendantsVDOM.indexOf(res.vdom) === -1) {
0 commit comments