Skip to content

Commit ee38718

Browse files
committed
Fix #54: Playground validation bug
1 parent ba58ed5 commit ee38718

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/src/tabs.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,9 @@ export class TabContent extends React.Component {
188188
validateData = () => {
189189
let validator = new DataValidator(this.state.rjf_state.getSchema());
190190
let validation = validator.validate(this.state.rjf_state.getData());
191-
if (!validation.isValid) {
192-
this.setState({
193-
errorMap: validation.errorMap
194-
})
195-
}
191+
this.setState({
192+
errorMap: validation.errorMap
193+
});
196194
}
197195

198196
render() {

0 commit comments

Comments
 (0)