From bf953bb06205b66b4b15b270fc44e05041b9f091 Mon Sep 17 00:00:00 2001 From: Nathanael Liu Date: Thu, 25 Jul 2024 16:58:09 -0400 Subject: [PATCH] Update apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 []; }