diff options
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/member_list_item.jsx | 4 | ||||
-rw-r--r-- | web/react/components/sidebar.jsx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/web/react/components/member_list_item.jsx b/web/react/components/member_list_item.jsx index d244939f5..bfce0f49f 100644 --- a/web/react/components/member_list_item.jsx +++ b/web/react/components/member_list_item.jsx @@ -44,7 +44,7 @@ export default class MemberListItem extends React.Component { var self = this; let makeAdminOption = null; - if (makeAdminOption) { + if (this.props.handleMakeAdmin) { makeAdminOption = ( <li role='presentation'> <a @@ -56,7 +56,7 @@ export default class MemberListItem extends React.Component { } let handleRemoveOption = null; - if (handleRemoveOption) { + if (this.props.handleRemove) { handleRemoveOption = ( <li role='presentation'> <a diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx index ef23f5bc2..983260187 100644 --- a/web/react/components/sidebar.jsx +++ b/web/react/components/sidebar.jsx @@ -387,13 +387,13 @@ export default class Sidebar extends React.Component { this.setState({loadingDMChannel: -1}); AsyncClient.getChannel(data.id); Utils.switchChannel(data); - }, + }.bind(this), function error() { this.setState({loadingDMChannel: -1}); window.location.href = TeamStore.getCurrentTeamUrl() + '/channels/' + channel.name; - } + }.bind(this) ); - }; + }.bind(this); } } |