editpage-fix

This commit is contained in:
Untone 2024-07-06 04:29:59 +03:00
parent 90691aa650
commit c623356893
2 changed files with 3 additions and 5 deletions

View File

@ -125,7 +125,7 @@ export const AuthorsProvider = (props: { children: JSX.Element }) => {
return sortedTopAuthors return sortedTopAuthors
}) })
const loadAuthorsPage = async (args: QueryLoad_Authors_ByArgs): Promise<void> => { const loadAuthorsPaginated = async (args: QueryLoad_Authors_ByArgs): Promise<void> => {
try { try {
const fetcher = await loadAuthors(args) const fetcher = await loadAuthors(args)
const data = await fetcher() const data = await fetcher()
@ -179,7 +179,7 @@ export const AuthorsProvider = (props: { children: JSX.Element }) => {
addAuthors, addAuthors,
addAuthor, addAuthor,
loadAuthor, loadAuthor,
loadAuthors: loadAuthorsPage, loadAuthors: loadAuthorsPaginated,
topAuthors, topAuthors,
authorsByTopic, authorsByTopic,
setAuthorsSort setAuthorsSort

View File

@ -27,7 +27,7 @@ export const getContentTypeTitle = (layout: LayoutType) => {
} }
} }
export const EditPage = () => { export default () => {
const { t } = useLocalize() const { t } = useLocalize()
const { session } = useSession() const { session } = useSession()
const snackbar = useSnackbar() const snackbar = useSnackbar()
@ -70,5 +70,3 @@ export const EditPage = () => {
</PageLayout> </PageLayout>
) )
} }
export default EditPage