load-fix
This commit is contained in:
parent
f7c33c167a
commit
f2012bca18
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user