Skip to content

Commit

Permalink
fix: corrects posts type
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkn3ssr3igns committed Oct 13, 2024
1 parent cef8e96 commit f9f1b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function filterDrafts ({ data }: CollectionEntry<'blog'>) {
}

export function filterFeatured (
posts: CollectionEntry<'blog'>,
posts: CollectionEntry<'blog'>[],
limit: number = 4
) {
return [...posts.filter(({ data }) => data.featured)].slice(0, limit)
Expand Down

0 comments on commit f9f1b37

Please sign in to comment.