ensure-load-author
All checks were successful
deploy / test (push) Successful in 1m9s

This commit is contained in:
Untone 2023-12-27 23:55:36 +03:00
parent 340d984045
commit 5f0ab7d870

View File

@ -78,7 +78,8 @@ export const AuthorView = (props: Props) => {
onMount(async () => { onMount(async () => {
checkBioHeight() checkBioHeight()
const slug = props.authorSlug || props.author.slug || author().slug
await loadAuthor({ slug })
// pagination // pagination
if (sortedArticles().length === PRERENDERED_ARTICLES_COUNT) { if (sortedArticles().length === PRERENDERED_ARTICLES_COUNT) {
await loadMore() await loadMore()