From 376d37f05e86f38e02c0b1560848addc52a9f479 Mon Sep 17 00:00:00 2001 From: David Jay Date: Mon, 7 Nov 2016 15:44:49 -0500 Subject: [PATCH] Removing type dependency when hydrating comments. --- client/coral-framework/store/actions/items.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/coral-framework/store/actions/items.js b/client/coral-framework/store/actions/items.js index 2caf96ce2..443a41e94 100644 --- a/client/coral-framework/store/actions/items.js +++ b/client/coral-framework/store/actions/items.js @@ -97,12 +97,10 @@ export function getStream (assetId) { /* Check for root and child comments. */ if ( - item.type === 'comment' && item.asset_id === assetId && !item.parent_id) { rootComments.push(item.id) } else if ( - item.type === 'comment' && item.asset_id === assetId ) { let children = childComments[item.parent_id] || []