From 5f0ab7d87013d0260bc45705e9df1cb06563d669 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 27 Dec 2023 23:55:36 +0300 Subject: [PATCH] ensure-load-author --- src/components/Views/Author/Author.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Views/Author/Author.tsx b/src/components/Views/Author/Author.tsx index fea33ac5..be271c16 100644 --- a/src/components/Views/Author/Author.tsx +++ b/src/components/Views/Author/Author.tsx @@ -78,7 +78,8 @@ export const AuthorView = (props: Props) => { onMount(async () => { checkBioHeight() - + const slug = props.authorSlug || props.author.slug || author().slug + await loadAuthor({ slug }) // pagination if (sortedArticles().length === PRERENDERED_ARTICLES_COUNT) { await loadMore()