From d2d704fceb79c0ffa00c999336fa5c3f900b1f78 Mon Sep 17 00:00:00 2001 From: Traxus Date: Sat, 22 Apr 2023 02:13:21 -0400 Subject: [PATCH] Signed-off-by: Traxus --- json/site_content/category/news.json | 2 +- src/pages/blog/index.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/json/site_content/category/news.json b/json/site_content/category/news.json index 91d0591..48c8cb8 100644 --- a/json/site_content/category/news.json +++ b/json/site_content/category/news.json @@ -3,7 +3,7 @@ "category": { "id": "2965426", "slug": "news", - "title": "[TEST EDIT TO LOCAL JSON] News" + "title": "News" } } } \ No newline at end of file diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx index 92e8e05..c0683df 100644 --- a/src/pages/blog/index.tsx +++ b/src/pages/blog/index.tsx @@ -247,7 +247,6 @@ export const getStaticProps = async () => { //===== \/ START NEXT_PUBLIC_DATOCMS_BYPASS \/ ==================================================== - //function getInitialBlogPostsDataProp(allBlogPosts : object) { function getInitialBlogPostsDataProp(allBlogPosts : any) { let initialBlogPostsDataProp : any[] = []; @@ -270,7 +269,7 @@ export const getStaticProps = async () => { ]) */ - const [allBlogPosts, categories] = await Promise.all([ + const [allBlogPosts, categories : any[]] = await Promise.all([ getAllBlogPostsFromSource({ page: 1 }), getAllBlogPostsCategoriesFromSource(), ])