Skip to content

Commit

Permalink
fix(editor): fix validate when fields is not visible
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicMahieu committed Dec 12, 2018
1 parent 3b182b1 commit f140feb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class ControlPane extends React.Component {

validate = () => {
this.props.fields.forEach(field => {
if (this.isVisible(field)) return;
if (!this.isVisible(field)) return;
this.componentValidate[field.get('name')]();
});
};
Expand Down

0 comments on commit f140feb

Please sign in to comment.