summaryrefslogtreecommitdiffstats
path: root/web/react/utils/utils.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-12-01 08:50:28 -0500
committerChristopher Speller <crspeller@gmail.com>2015-12-01 08:50:28 -0500
commit62c96514bfa243029dba2d9b47b5b8a8322059e4 (patch)
tree50c09d80374d6ce02675a3fc9c6825030ae2a3c8 /web/react/utils/utils.jsx
parent2bfb3493f441d95b67351e03869f8454c4a3a265 (diff)
parent0b3be654a2d13cd3f74d489c75beec3ada4a6d80 (diff)
downloadchat-62c96514bfa243029dba2d9b47b5b8a8322059e4.tar.gz
chat-62c96514bfa243029dba2d9b47b5b8a8322059e4.tar.bz2
chat-62c96514bfa243029dba2d9b47b5b8a8322059e4.zip
Merge pull request #1548 from mattermost/plt-1268
PLT-1268 Fix webhook post aggregation and pending/failed post aggregation
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r--web/react/utils/utils.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 80c377d7f..0c08c2df6 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -854,7 +854,7 @@ export function isMobile() {
export function isComment(post) {
if ('root_id' in post) {
- return post.root_id !== '';
+ return post.root_id !== '' && post.root_id != null;
}
return false;
}