fix(important): Icon does not update from nextProps

This commit is contained in:
Ben Gotow 2016-02-09 15:02:02 -08:00
parent 5676a52d47
commit 6876a2f7d0

View file

@ -38,7 +38,7 @@ class MailImportantIcon extends React.Component
category = CategoryStore.getStandardCategory(props.thread.accountId, 'important') category = CategoryStore.getStandardCategory(props.thread.accountId, 'important')
visible = category? visible = category?
isImportant = category and _.findWhere(@props.thread.categories, {id: category.id})? isImportant = category and _.findWhere(props.thread.categories, {id: category.id})?
{visible, category, isImportant} {visible, category, isImportant}