Skip to content

Commit

Permalink
fix(core): fix hasChanged return type (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Sep 27, 2020
1 parent a661055 commit d0eb66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/shared/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export const createModel = <
FormPath.getIn(this.state, path)
)
} else {
return this.dirtys[pattern]
return !!this.dirtys[pattern]
}
}
}
Expand Down

0 comments on commit d0eb66b

Please sign in to comment.