Skip to content

Commit

Permalink
fix: tags could be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjoeoui committed Dec 27, 2024
1 parent 18356fa commit 4f5043c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/tags/[tag]/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const getStaticPaths: GetStaticPaths = async ({ paginate }) => {
return uniqueTags.flatMap((tag) => {
const filterPosts = allPostsByDate.filter((post) =>
post.tags.includes(tag),
post.tags?.includes(tag),
);
return paginate(filterPosts, {
pageSize: 10,
Expand Down

0 comments on commit 4f5043c

Please sign in to comment.