Skip to content

Commit

Permalink
fix(core): fix reset deep children (#933)
Browse files Browse the repository at this point in the history
* fix(core): fix reset deep children

* fix(core): fix ci
  • Loading branch information
janryWang authored Jul 2, 2020
1 parent 2958e00 commit c8dd390
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/__tests__/graph.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ test('eachChildren path selector eacher', () => {
(node, path) => {
shallowChilds.push({ node, path })
},
true
false
)
expect(shallowChilds).toEqual([])

Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/shared/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ export class FormGraph<NodeType = any> extends Subscribable<{
: FormPath.parse(selector).match(path))
) {
eacher(node, path)
if (recursion) {
this.eachChildren(path, selector, eacher, recursion)
}
}
if (recursion) {
this.eachChildren(path, selector, eacher, recursion)
}
}
})
Expand Down

0 comments on commit c8dd390

Please sign in to comment.