Removing type dependency when hydrating comments.

This commit is contained in:
David Jay
2016-11-07 15:44:49 -05:00
parent 5a3d6ac287
commit 376d37f05e
@@ -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] || []