fix author view

This commit is contained in:
ilya-bkv 2024-04-26 06:13:23 +03:00
parent ac39230271
commit b3155c4535

View File

@ -112,6 +112,7 @@ export const AuthorView = (props: Props) => {
onMount(() => { onMount(() => {
if (!modal) hideModal() if (!modal) hideModal()
fetchData(props.authorSlug)
checkBioHeight() checkBioHeight()
loadMore() loadMore()
}) })
@ -131,8 +132,8 @@ export const AuthorView = (props: Props) => {
createEffect( createEffect(
on( on(
() => authorSlug(), () => authorSlug(),
(slug) => { () => {
fetchData(slug) fetchData(authorSlug())
fetchComments(author()) fetchComments(author())
}, },
{ defer: true }, { defer: true },