Skip to content

Commit

Permalink
fix: #496 #495
Browse files Browse the repository at this point in the history
  • Loading branch information
foxhound87 committed Mar 31, 2019
1 parent 7228f62 commit 34a6f4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shared/Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,10 @@ export default {
const isStrict = this.state.options.get('strictUpdate', this);

if (_.isNil(data)) {
this.each(field => field.set(''))
return
this.each(field => field.clear(true));
return;
}

_.each(data, ($val, $key) => {
const $path = _.trimStart(`${path}.${$key}`, '.');
// get the field by path joining keys recursively
Expand Down

0 comments on commit 34a6f4f

Please sign in to comment.