Fix failig test

This commit is contained in:
Jonas Schwabe 2017-01-30 22:28:46 +01:00
parent d63fdccb00
commit 5e55c5496c

View file

@ -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,