From 4f3de3fc97ee1793867a3dc32509c8fbca13e255 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 25 Jan 2016 18:42:56 -0800 Subject: [PATCH] Fix for bad @props --- internal_packages/account-sidebar/lib/sidebar-item.coffee | 2 +- src/components/multiselect-action-bar.cjsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal_packages/account-sidebar/lib/sidebar-item.coffee b/internal_packages/account-sidebar/lib/sidebar-item.coffee index e738d204a..18609930a 100644 --- a/internal_packages/account-sidebar/lib/sidebar-item.coffee +++ b/internal_packages/account-sidebar/lib/sidebar-item.coffee @@ -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') diff --git a/src/components/multiselect-action-bar.cjsx b/src/components/multiselect-action-bar.cjsx index 715e47060..adcf28503 100644 --- a/src/components/multiselect-action-bar.cjsx +++ b/src/components/multiselect-action-bar.cjsx @@ -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