From 6457a184938132dedb6387c224f25b186148cb3b Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 3 Dec 2015 09:22:20 -0500 Subject: [PATCH] Update post if shouldHighlight prop changes --- web/react/components/post.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx index 66d8c507ab..b32656bfca 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) {