Check for valid roomId before renering manageIntegsButton.

pull/21833/head
Richard Lewis 2017-08-17 18:10:50 +01:00
parent 0907fff080
commit 120a4f4f44
1 changed files with 7 additions and 3 deletions

View File

@ -323,14 +323,18 @@ module.exports = React.createClass({
}
let rightRow;
let manageIntegsButton;
if(this.props.room && this.props.room.roomId) {
manageIntegsButton = <ManageIntegsButton
roomId={this.props.room.roomId}
/>;
}
if (!this.props.editing) {
rightRow =
<div className="mx_RoomHeader_rightRow">
{ settingsButton }
<ManageIntegsButton
roomId={this.props.room.roomId}
/>
{ manageIntegsButton }
{ forgetButton }
{ searchButton }
{ rightPanelButtons }