mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 02:30:21 +08:00
fix(message-toolbar): Handle scenario where toolbar items rapidly removed (Sentry 2861)
This commit is contained in:
parent
48f4667205
commit
6f152530d6
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ class MessageToolbarItems extends React.Component
|
|||
@_unsubscribers.push FocusedContentStore.listen @_onChange
|
||||
|
||||
componentWillUnmount: =>
|
||||
return unless @_unsubscribers
|
||||
unsubscribe() for unsubscribe in @_unsubscribers
|
||||
|
||||
_onChange: =>
|
||||
|
|
Loading…
Reference in a new issue