diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx index 46291ea..aa24ffa 100644 --- a/src/pages/blog/index.tsx +++ b/src/pages/blog/index.tsx @@ -250,7 +250,7 @@ export const getStaticProps = async () => { //function getInitialBlogPostsDataProp(allBlogPosts : object) { function getInitialBlogPostsDataProp(allBlogPosts : any) { - let initialBlogPostsDataProp = {}; + let initialBlogPostsDataProp : any[] = []; if (process.env.NEXT_PUBLIC_DATOCMS_BYPASS_TYPE === "local_json") { //-----no pagination