fix: types errors
This commit is contained in:
+1
-1
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user