Handle rooms with no aliases or canonical alias
parent
98312a4647
commit
58f1757f0c
|
@ -49,7 +49,7 @@ const RoomDetailRow = React.createClass({
|
|||
dis.dispatch({
|
||||
action: 'view_room',
|
||||
room_id: this.props.room.roomId,
|
||||
room_alias: this.props.room.canonicalAlias || this.props.room.aliases[0],
|
||||
room_alias: this.props.room.canonicalAlias || (this.props.room.aliases || [])[0],
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue