fix: ssr crash

This commit is contained in:
Xyphyn committed 2023-09-26 20:13:54 -07:00
1 parent baea03a3c3
commit 5f1036ffb5
4 files changed
+16 -18

No files matched your search

@@ -157,11 +157,7 @@
saved={post.post_view.saved}
/>
</div>
<Button
on:click={() => history.back()}
size="square-md"
class={history.length < 3 ? 'hidden' : ''}
>
<Button on:click={() => history.back()} size="square-md">
<Icon src={ArrowLeft} mini size="16" slot="prefix" />
</Button>
</div>
@@ -47,9 +47,7 @@ export async function load({ params, url, fetch }) {
post: post,
commentSort: sort,
streamed: {
comments: SSR_ENABLED
? await getClient(params.instance, fetch).getComments(commentParams)
: getClient(params.instance, fetch).getComments(commentParams),
comments: getClient(params.instance, fetch).getComments(commentParams),
},
}
}