topics-render-fix2

This commit is contained in:
Untone 2024-07-06 01:24:56 +03:00
parent 2d5e9877ee
commit 35f39da99e
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ export const route = {
export default function AllAuthorsPage(props: RouteSectionProps<{ authors: Author[] }>) { export default function AllAuthorsPage(props: RouteSectionProps<{ authors: Author[] }>) {
const { t } = useLocalize() const { t } = useLocalize()
const authors = createAsync<Author[]>(async () => props.data.authors || await fetchData()) const authors = createAsync<Author[]>(async () => props.data.authors || (await fetchData()))
return ( return (
<PageLayout withPadding={true} title={`${t('Discours')} :: ${t('All authors')}`}> <PageLayout withPadding={true} title={`${t('Discours')} :: ${t('All authors')}`}>
<ReactionsProvider> <ReactionsProvider>