fix: types errors

This commit is contained in:
DIYgod 2022-09-23 00:36:06 +01:00
parent d7a89ee1b1
commit 890d64d14c
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export const useGetPagesBySite = (
export const useGetPage = (input: Parameters<typeof pageModel.getPage>[0]) => {
return useQuery(["getPage", input.page, input], async () => {
if (!input.site || !(input.page || input.pageId)) {
return null
return undefined
}
return pageModel.getPage(input)
})