From 0b3be654a2d13cd3f74d489c75beec3ada4a6d80 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Mon, 30 Nov 2015 14:15:28 -0500 Subject: Fix webhook post aggregation and pending/failed post aggregation --- web/react/utils/utils.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/react/utils/utils.jsx') 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; } -- cgit v1.2.3-1-g7c22