diff --git a/apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts b/apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts index fe58dd8d..f00a2da9 100644 --- a/apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts @@ -8,10 +8,10 @@ export default async function sitemap( const { params: { lang } } = props - let sections; + let sections = []; try { - sections = await getArticleSections(lang) - } catch(error) { + sections = await getArticleSections(lang); + } catch (error) { return []; }