Skip to content

Commit

Permalink
removed error of adding redundant info in Add-Experience component.
Browse files Browse the repository at this point in the history
  • Loading branch information
ganesh-deshmukh committed Oct 27, 2018
1 parent 8a2f27a commit 2c90309
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions frontend/src/components/add-credentials/AddEducation.js
Expand Up @@ -46,6 +46,20 @@ class AddEducation extends Component {
};

this.props.addEducation(eduData, this.props.history);

// after sending data to backend, clear form values, using set state.

this.setState({
school: "",
degree: "",
fieldofstudy: "",
from: "",
to: "",
current: false,
description: "",
errors: {},
disabled: false
});
}

onChange(e) {
Expand Down

0 comments on commit 2c90309

Please sign in to comment.