mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
fix(prefs): Guard against null account in preferences window
This commit is contained in:
parent
69872ca1a6
commit
09ed1ea415
|
@ -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…
Reference in a new issue