mirror of
https://github.com/wassname/talk.git
synced 2026-08-05 13:30:26 +08:00
Removing type dependency when hydrating comments.
This commit is contained in:
@@ -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] || []
|
||||
|
||||
Reference in New Issue
Block a user