Fix for bad @props

This commit is contained in:
Ben Gotow 2016-01-25 18:42:56 -08:00
parent b13ca724f1
commit 4f3de3fc97
2 changed files with 2 additions and 2 deletions

View file

@ -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')

View file

@ -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