mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 11:52:34 +08:00
Fix for bad @props
This commit is contained in:
parent
b13ca724f1
commit
4f3de3fc97
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ _ = require 'underscore'
|
|||
|
||||
|
||||
idForCategories = (categories) ->
|
||||
categories.map((cat) -> cat.id).join('-')
|
||||
_.pluck(categories, 'id').join('-')
|
||||
|
||||
countForItem = (perspective) ->
|
||||
unreadCountEnabled = NylasEnv.config.get('core.workspace.showUnreadForAllCategories')
|
||||
|
|
|
@ -74,7 +74,7 @@ class MultiselectActionBar extends React.Component
|
|||
setupForProps: (props) =>
|
||||
@_unsubscribers = []
|
||||
@_unsubscribers.push WorkspaceStore.listen @_onChange
|
||||
@_unsubscribers.push @props.dataSource.listen @_onChange
|
||||
@_unsubscribers.push props.dataSource.listen @_onChange
|
||||
|
||||
shouldComponentUpdate: (nextProps, nextState) =>
|
||||
not Utils.isEqualReact(nextProps, @props) or
|
||||
|
|
Loading…
Reference in a new issue