Merge pull request #1594 from mattermost/plt-1332

PLT-1332 Update post if shouldHighlight prop changes
Этот коммит содержится в:
Christopher Speller
2015-12-03 12:58:29 -05:00
родитель 865b42c7be 6457a18493
Коммит d6265fc4c3

Просмотреть файл

@@ -95,6 +95,10 @@ export default class Post extends React.Component {
return true;
}
if (nextProps.shouldHighlight !== this.props.shouldHighlight) {
return true;
}
return false;
}
getCommentCount(props) {