Reset team edit form on clicking edit button
This commit is contained in:
parent
19134b08b0
commit
17949d34ae
|
@ -302,7 +302,8 @@ var TeamList = React.createClass({
|
||||||
|
|
||||||
var addTeamForm;
|
var addTeamForm;
|
||||||
if (this.props.showAddTeamForm || this.state.showTeamListItemNew) {
|
if (this.props.showAddTeamForm || this.state.showTeamListItemNew) {
|
||||||
addTeamForm = <TeamListItemNew onTeamAdd={ this.handleTeamAdd } teamIndex={ this.state.team.index } teamName={ this.state.team.name } teamUrl={ this.state.team.url } />;
|
addTeamForm = <TeamListItemNew key={ this.state.team.index } onTeamAdd={ this.handleTeamAdd } teamIndex={ this.state.team.index } teamName={ this.state.team.name } teamUrl={ this.state.team.url }
|
||||||
|
/>;
|
||||||
} else {
|
} else {
|
||||||
addTeamForm = '';
|
addTeamForm = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue