Fix failig test
This commit is contained in:
parent
d63fdccb00
commit
5e55c5496c
|
@ -111,10 +111,14 @@ const TeamList = React.createClass({
|
||||||
this.props.toggleAddTeamForm();
|
this.props.toggleAddTeamForm();
|
||||||
}}
|
}}
|
||||||
onSave={(newTeam) => {
|
onSave={(newTeam) => {
|
||||||
|
var teamData = {
|
||||||
|
name: newTeam.name,
|
||||||
|
url: newTeam.url
|
||||||
|
};
|
||||||
if (this.props.showAddTeamForm) {
|
if (this.props.showAddTeamForm) {
|
||||||
this.props.addServer(newTeam);
|
this.props.addServer(teamData);
|
||||||
} else {
|
} else {
|
||||||
this.props.updateTeam(newTeam.index, newTeam);
|
this.props.updateTeam(newTeam.index, teamData);
|
||||||
}
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
showNewTeamModal: false,
|
showNewTeamModal: false,
|
||||||
|
|
Loading…
Reference in a new issue