diff --git a/src/components/mail-important-icon.cjsx b/src/components/mail-important-icon.cjsx index 14116a3d5..d45aabcab 100644 --- a/src/components/mail-important-icon.cjsx +++ b/src/components/mail-important-icon.cjsx @@ -32,7 +32,9 @@ class MailImportantIcon extends React.Component render: => return false unless @state.showing - importantId = CategoryStore.getStandardCategory('important').id + importantId = CategoryStore.getStandardCategory('important')?.id + return false unless importantId + isImportant = _.findWhere(@props.thread.labels, {id: importantId})? activeClassname = if isImportant then "active" else ""