diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-12-03 09:22:20 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-12-03 09:22:20 -0500 |
commit | 6457a184938132dedb6387c224f25b186148cb3b (patch) | |
tree | a8d324215fa6c79b2e7704015ca4647653978c65 /web/react/components/post.jsx | |
parent | 61f90860a875cbf019570dfbb06ba716a7994fc3 (diff) | |
download | chat-6457a184938132dedb6387c224f25b186148cb3b.tar.gz chat-6457a184938132dedb6387c224f25b186148cb3b.tar.bz2 chat-6457a184938132dedb6387c224f25b186148cb3b.zip |
Update post if shouldHighlight prop changes
Diffstat (limited to 'web/react/components/post.jsx')
-rw-r--r-- | web/react/components/post.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |