fix: ts errors
This commit is contained in:
@@ -125,7 +125,10 @@ export const PagesManager: React.FC<{
|
||||
</svg>
|
||||
),
|
||||
onClick() {
|
||||
pageDelete(page.id)
|
||||
deletePage.mutate({
|
||||
site: subdomain,
|
||||
id: page.id
|
||||
})
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
@@ -28,7 +28,7 @@ export const getServerSideProps: GetServerSideProps = serverSidePropsHandler(
|
||||
includeAuthors: true,
|
||||
})
|
||||
|
||||
if (new Date(page.date_published) > new Date()) {
|
||||
if (new Date(page!.date_published) > new Date()) {
|
||||
throw notFound()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user