mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-27 15:04:31 +08:00
fix(prefs): Guard against null account in preferences window
This commit is contained in:
parent
204746252b
commit
1e7732f260
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class PreferencesGeneral extends React.Component
|
|||
event.preventDefault()
|
||||
|
||||
_renderImportanceOptionElement: =>
|
||||
return false unless AccountStore.current().usesImportantFlag()
|
||||
return false unless AccountStore.current()?.usesImportantFlag()
|
||||
importanceOptionElement = <div className="section-header">
|
||||
<input type="checkbox" id="show-important"
|
||||
checked={@props.config.get('core.showImportant')}
|
||||
|
|
Loading…
Add table
Reference in a new issue