feat: Fix commenting issue
This commit is contained in:
1 parent
d9812b17bd
commit
dd30acf19d
5 files changed
+16
-6
No files matched your search
@@ -159,7 +159,14 @@
|
||||
{postId}
|
||||
parentId={node.comment_view.comment.id}
|
||||
on:comment={(e) => {
|
||||
node.children = [e.detail, ...node.children]
|
||||
node.children = [
|
||||
{
|
||||
children: [],
|
||||
depth: node.depth,
|
||||
comment_view: e.detail.comment_view,
|
||||
},
|
||||
...node.children,
|
||||
]
|
||||
replying = false
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user