summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_list.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-08-10 16:51:59 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-08-12 11:19:42 -0700
commite02883baf2fd2a0cfc21bd557bc0ecc69afd707c (patch)
treec874014e674764172e6caf73a34886ce7a020db4 /web/react/components/post_list.jsx
parent23a331f933af834ed1a26806f087e61ca6ddd93a (diff)
downloadchat-e02883baf2fd2a0cfc21bd557bc0ecc69afd707c.tar.gz
chat-e02883baf2fd2a0cfc21bd557bc0ecc69afd707c.tar.bz2
chat-e02883baf2fd2a0cfc21bd557bc0ecc69afd707c.zip
Cosmetic refactoring of post_body.jsx
Diffstat (limited to 'web/react/components/post_list.jsx')
-rw-r--r--web/react/components/post_list.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx
index 12875ee90..ad7f4a8bf 100644
--- a/web/react/components/post_list.jsx
+++ b/web/react/components/post_list.jsx
@@ -434,8 +434,9 @@ module.exports = React.createClass({
var isLastComment = utils.isComment(post) && (i === 0 || posts[order[i-1]].root_id != post.root_id);
var postKey = post.id;
- if (post.lastEditDate != undefined)
+ if (post.lastEditDate) {
postKey += post.lastEditDate;
+ }
var postCtl = (
<Post ref={post.id} sameUser={sameUser} sameRoot={sameRoot} post={post} parentPost={parentPost} key={postKey}