diff --git a/src/components/views/rooms/RoomDetailList.js b/src/components/views/rooms/RoomDetailList.js index 69f3faa325..c44b662fa7 100644 --- a/src/components/views/rooms/RoomDetailList.js +++ b/src/components/views/rooms/RoomDetailList.js @@ -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], }); },