fix: comments not expanding
This commit is contained in:
1 parent
9970c8af6b
commit
97b6a592d6
1 file changed
+5
-2
@@ -44,7 +44,10 @@
|
|||||||
let comments = $state(passedComments)
|
let comments = $state(passedComments)
|
||||||
|
|
||||||
let commenting = $state(false)
|
let commenting = $state(false)
|
||||||
let tree = $derived(buildCommentsTree(comments.comments))
|
let tree = $state(buildCommentsTree(comments.comments))
|
||||||
|
$effect(() => {
|
||||||
|
tree = buildCommentsTree(comments.comments)
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $profile?.jwt}
|
{#if $profile?.jwt}
|
||||||
@@ -127,6 +130,6 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<CommentListVirtualizer
|
<CommentListVirtualizer
|
||||||
post={post.post_view.post}
|
post={post.post_view.post}
|
||||||
nodes={tree}
|
bind:nodes={tree}
|
||||||
scrollTo={focus}
|
scrollTo={focus}
|
||||||
/>
|
/>
|
||||||
Reference in new issue
Block a user