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

This commit is contained in:
Traxus 2023-04-22 02:18:11 -04:00
parent d2d704fceb
commit d13f57a7e2

View File

@ -158,7 +158,7 @@ const BlogIndexPage = ({
>
All
</ButtonLink>
{categories.map((category) => {
{categories.map((category: any) => {
return (
<ButtonLink
key={category.slug}
@ -269,7 +269,7 @@ export const getStaticProps = async () => {
])
*/
const [allBlogPosts, categories : any[]] = await Promise.all([
const [allBlogPosts, categories] = await Promise.all([
getAllBlogPostsFromSource({ page: 1 }),
getAllBlogPostsCategoriesFromSource(),
])