Fix a warning from RoomSubList
`selectedRoom` is *not* required, and we often don't have one, so get warnings.
This commit is contained in:
parent
2123fec8ed
commit
0d4f35bed1
|
@ -61,8 +61,12 @@ var RoomSubList = React.createClass({
|
||||||
label: React.PropTypes.string.isRequired,
|
label: React.PropTypes.string.isRequired,
|
||||||
tagName: React.PropTypes.string,
|
tagName: React.PropTypes.string,
|
||||||
editable: React.PropTypes.bool,
|
editable: React.PropTypes.bool,
|
||||||
|
|
||||||
order: React.PropTypes.string.isRequired,
|
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,
|
startAsHidden: React.PropTypes.bool,
|
||||||
showSpinner: React.PropTypes.bool, // true to show a spinner if 0 elements when expanded
|
showSpinner: React.PropTypes.bool, // true to show a spinner if 0 elements when expanded
|
||||||
collapsed: React.PropTypes.bool.isRequired, // is LeftPanel collapsed?
|
collapsed: React.PropTypes.bool.isRequired, // is LeftPanel collapsed?
|
||||||
|
|
Loading…
Reference in New Issue