Skip to content

Commit ef87df5

Browse files
authored
Merge pull request #700 from rareyesdev/fix/draft-state-during-development
fix: remove hardcoded check for draft in development
2 parents 4b4147c + d2ae328 commit ef87df5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/tags/[tag]/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ export default function TagPage({ params }: { params: { tag: string } }) {
3535
// Capitalize first letter and convert space to dash
3636
const title = tag[0].toUpperCase() + tag.split(' ').join('-').slice(1)
3737
const filteredPosts = allCoreContent(
38-
allBlogs.filter(
39-
(post) => post.draft !== true && post.tags && post.tags.map((t) => slug(t)).includes(tag)
40-
)
38+
allBlogs.filter((post) => post.tags && post.tags.map((t) => slug(t)).includes(tag))
4139
)
4240
return <ListLayout posts={filteredPosts} title={title} />
4341
}

0 commit comments

Comments
 (0)