From 23815a696c0cb6011c8288b29b9e01c55181c9ae Mon Sep 17 00:00:00 2001 From: Myeonghyeon-Lee Date: Thu, 25 Aug 2016 00:05:39 +0900 Subject: fix for team.display_name instead of team.name (#3827) --- .../components/admin_console/select_team_modal.jsx | 28 ++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/admin_console/select_team_modal.jsx b/webapp/components/admin_console/select_team_modal.jsx index ed6d33056..6a1fe9bea 100644 --- a/webapp/components/admin_console/select_team_modal.jsx +++ b/webapp/components/admin_console/select_team_modal.jsx @@ -29,20 +29,18 @@ export default class SelectTeamModal extends React.Component { } var options = []; - - for (var key in this.props.teams) { - if (this.props.teams.hasOwnProperty(key)) { - var team = this.props.teams[key]; - options.push( - - ); - } - } + var teams = this.props.teams; + Reflect.ownKeys(teams).forEach((key) => { + var team = teams[key]; + options.push( + + ); + }); return (