This commit is contained in:
Untone 2024-04-16 07:07:36 +03:00
parent f7c33c167a
commit f2012bca18

View File

@ -69,7 +69,7 @@ export const AuthorView = (props: Props) => {
const a = authorEntities()[props.authorSlug] const a = authorEntities()[props.authorSlug]
setAuthor(a) setAuthor(a)
console.debug('[AuthorView] preloaded author:', a) console.debug('[AuthorView] preloaded author:', a)
} else if (props.authorSlug || (author()?.id && !author().stat)) { } else if (props.authorSlug && !author().stat) {
// load author // load author
const a = await loadAuthor({ slug: props.authorSlug, author_id: author()?.id }) const a = await loadAuthor({ slug: props.authorSlug, author_id: author()?.id })
setAuthor(a) setAuthor(a)