mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(warning): Don't render participant picker with null value
This commit is contained in:
parent
a26282a4c5
commit
ef9ed7886f
1 changed files with 1 additions and 1 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue