Check for valid roomId before renering manageIntegsButton.
This commit is contained in:
parent
0907fff080
commit
120a4f4f44
1 changed files with 7 additions and 3 deletions
|
@ -323,14 +323,18 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
let rightRow;
|
let rightRow;
|
||||||
|
let manageIntegsButton;
|
||||||
|
if(this.props.room && this.props.room.roomId) {
|
||||||
|
manageIntegsButton = <ManageIntegsButton
|
||||||
|
roomId={this.props.room.roomId}
|
||||||
|
/>;
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.props.editing) {
|
if (!this.props.editing) {
|
||||||
rightRow =
|
rightRow =
|
||||||
<div className="mx_RoomHeader_rightRow">
|
<div className="mx_RoomHeader_rightRow">
|
||||||
{ settingsButton }
|
{ settingsButton }
|
||||||
<ManageIntegsButton
|
{ manageIntegsButton }
|
||||||
roomId={this.props.room.roomId}
|
|
||||||
/>
|
|
||||||
{ forgetButton }
|
{ forgetButton }
|
||||||
{ searchButton }
|
{ searchButton }
|
||||||
{ rightPanelButtons }
|
{ rightPanelButtons }
|
||||||
|
|
Loading…
Reference in a new issue