Skip to content

Commit

Permalink
perf(Form): remove useless logic
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqiboy committed Dec 3, 2020
1 parent 08d35a4 commit 49776bf
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/react-formutil.cjs.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ var Form = /*#__PURE__*/function (_Component) {

if (force || pathData) {
var $curState = handler.$getState();
var $newState = handler && processer(pathData && pathData.data, handler);
var $newState = processer(pathData && pathData.data, handler);

if ($newState) {
var _handler$$$merge = handler.$$merge($newState),
Expand Down
2 changes: 1 addition & 1 deletion dist/react-formutil.cjs.production.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-formutil.esm.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ var Form = /*#__PURE__*/function (_Component) {

if (force || pathData) {
var $curState = handler.$getState();
var $newState = handler && processer(pathData && pathData.data, handler);
var $newState = processer(pathData && pathData.data, handler);

if ($newState) {
var _handler$$$merge = handler.$$merge($newState),
Expand Down
2 changes: 1 addition & 1 deletion dist/react-formutil.esm.production.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-formutil.umd.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@

if (force || pathData) {
var $curState = handler.$getState();
var $newState = handler && processer(pathData && pathData.data, handler);
var $newState = processer(pathData && pathData.data, handler);

if ($newState) {
var _handler$$$merge = handler.$$merge($newState),
Expand Down
2 changes: 1 addition & 1 deletion dist/react-formutil.umd.production.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class Form extends Component {

if (force || pathData) {
const $curState = handler.$getState();
const $newState = handler && processer(pathData && pathData.data, handler);
const $newState = processer(pathData && pathData.data, handler);

if ($newState) {
const { $value: $newValue } = handler.$$merge($newState);
Expand Down

0 comments on commit 49776bf

Please sign in to comment.