From 6457a184938132dedb6387c224f25b186148cb3b Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 3 Dec 2015 09:22:20 -0500 Subject: Update post if shouldHighlight prop changes --- web/react/components/post.jsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/react') diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx index 66d8c507a..b32656bfc 100644 --- a/web/react/components/post.jsx +++ b/web/react/components/post.jsx @@ -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) { -- cgit v1.2.3-1-g7c22