improve not found for service

This commit is contained in:
Schneider Roland 2025-05-26 22:34:24 +02:00
parent 97feef9395
commit f0f0a975a9

View File

@ -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 (