Skip to content

Commit 9e46b7c

Browse files
committed
fixing travis CI errors
1 parent 6ebb65b commit 9e46b7c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package/tree.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class Tree {
3030
getCopy(copy = new Tree('root', true)) {
3131
// copy state of children
3232
copy.children = this.children.map(
33-
child => new Tree(child.component.state || child.component.traversed, true, child.component.constructor.name),
33+
child => new Tree(child.component.state
34+
|| child.component.traversed, true, child.component.constructor.name),
3435
);
3536

3637
// copy children's children recursively
@@ -40,8 +41,8 @@ class Tree {
4041

4142
// print out the tree in the console
4243
// DEV: Process may be different for useState components
43-
// BUG FIX: Don't print the Router as a component
44-
// Change how the children are printed
44+
// BUG FIX: Don't print the Router as a component
45+
// Change how the children are printed
4546
print() {
4647
const children = ['children: '];
4748
// DEV: What should we push instead for components using hooks (it wouldn't be state)

0 commit comments

Comments
 (0)