load-author-hotfix

This commit is contained in:
Untone 2024-02-26 01:29:26 +03:00
parent 132418d539
commit 96c52ae2b4

View File

@ -58,9 +58,9 @@ export const AuthorView = (props: Props) => {
}
})
createEffect(() => {
createEffect(async () => {
if (author()?.id && !author().stat) {
const a = loadAuthor({ slug: '', author_id: author().id })
const a = await loadAuthor({ slug: '', author_id: author().id })
console.debug('[AuthorView] loaded author:', a)
}
})