improve not found for service
This commit is contained in:
parent
97feef9395
commit
f0f0a975a9
@ -37,6 +37,9 @@ export default async function ServiceArticlePage({params}: {
|
||||
return notFound();
|
||||
}
|
||||
const selectedService = servicesByName[0];
|
||||
if ( !selectedService?.article?.length ) {
|
||||
return notFound();
|
||||
}
|
||||
const article: BlocksContent = rewriteStrapiImageUrlToNextImageUrl( selectedService.article);
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user