Skip to content

Commit

Permalink
Fixed visiting too many fields (#7).
Browse files Browse the repository at this point in the history
Fixed this by restoring a missing visited field pass-through in updatePath().
  • Loading branch information
hexus committed Feb 10, 2019
1 parent 9506e79 commit 2e520fa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/old.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/pragma.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/services/FormProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,9 @@ export default class FormProcessor
return;
}

this.updateField(field, data);

visited[field.path] = true;

this.updateField(field, data, visited);
}
);

Expand All @@ -975,9 +975,9 @@ export default class FormProcessor
continue;
}

this.updateField(ancestors[i], data, visited);

visited[ancestors[i].path] = true;

this.updateField(ancestors[i], data, visited);
}
//console.timeEnd('updatePath() ' + path);
}
Expand Down

0 comments on commit 2e520fa

Please sign in to comment.