fix(warning): Don't render participant picker with null value

This commit is contained in:
Jackie Luo 2016-10-25 14:08:13 -07:00
parent a26282a4c5
commit ef9ed7886f

View file

@ -62,7 +62,7 @@ export default class SidebarParticipantPicker extends React.Component {
render() {
const {sortedContacts, focusedContact} = this.state
const value = this._getKeyForContact(focusedContact)
if (sortedContacts.length === 0) {
if (sortedContacts.length === 0 || !value) {
return false
}
return (