summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2023-08-15 17:47:40 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2023-08-15 17:47:40 +0100
commita28cf885d5cac5d17bae7586ff88ea5e82bd70ff (patch)
tree48ab084c5572eaec050e6f87d98c85b47c15d6aa
parenta25b3c13b1ac5c40e48cdf42baf4081dd33dcf9f (diff)
Removes unnecessary console log
-rw-r--r--src/pages/[locale]/news/[...slug].astro6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pages/[locale]/news/[...slug].astro b/src/pages/[locale]/news/[...slug].astro
index 815387f..e3b8b36 100644
--- a/src/pages/[locale]/news/[...slug].astro
+++ b/src/pages/[locale]/news/[...slug].astro
@@ -19,17 +19,13 @@ export async function getStaticPaths() {
}
}
- const paths = (await getCollection('news')).map((entry) => ({
+ return (await getCollection('news')).map((entry) => ({
params: {
slug: entry.slug.replace('/', '-'),
locale: localeFromSlug(entry.slug),
},
props: { entry },
}));
-
- console.info('Paths: %s', JSON.stringify(paths));
-
- return paths;
}
const { entry } = Astro.props;