fix: unreactive post comments

This commit is contained in:
James Xylight committed 2025-02-06 16:31:41 -08:00
1 parent dd07caf5c4
commit 9dc575668c
3 files changed
+24 -21

No files matched your search

@@ -44,10 +44,7 @@
let comments = $state(passedComments)
let commenting = $state(false)
let tree = $state(buildCommentsTree(comments.comments))
$effect(() => {
tree = buildCommentsTree(comments.comments)
})
let tree = $derived(buildCommentsTree(comments.comments))
</script>
{#if $profile?.jwt}