Fix a warning from RoomSubList

`selectedRoom` is *not* required, and we often don't have one, so get warnings.
pull/1908/head
Richard van der Hoff 2016-08-01 13:44:04 +01:00
parent 2123fec8ed
commit 0d4f35bed1
1 changed files with 5 additions and 1 deletions

View File

@ -61,8 +61,12 @@ var RoomSubList = React.createClass({
label: React.PropTypes.string.isRequired,
tagName: React.PropTypes.string,
editable: React.PropTypes.bool,
order: React.PropTypes.string.isRequired,
selectedRoom: React.PropTypes.string.isRequired,
// undefined if no room is selected (eg we are showing settings)
selectedRoom: React.PropTypes.string,
startAsHidden: React.PropTypes.bool,
showSpinner: React.PropTypes.bool, // true to show a spinner if 0 elements when expanded
collapsed: React.PropTypes.bool.isRequired, // is LeftPanel collapsed?