Signed-off-by: Traxus <shyidx@gmail.com>

This commit is contained in:
Traxus 2023-04-22 02:13:21 -04:00
parent b715d37d0f
commit d2d704fceb
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,7 @@
"category": {
"id": "2965426",
"slug": "news",
"title": "[TEST EDIT TO LOCAL JSON] News"
"title": "News"
}
}
}

View File

@ -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(),
])