Skip to content

Commit

Permalink
Revert "fix: add filter by product team instead of tag"
Browse files Browse the repository at this point in the history
This reverts commit 4135b13.
  • Loading branch information
julia-rabello committed Dec 11, 2024
1 parent 827db7c commit b186d7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/troubleshooting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const TroubleshootingPage: NextPage<Props> = ({
.filter((troubleshoot) => troubleshoot.status === 'PUBLISHED')
.filter((troubleshoot) => {
const hasFilters: boolean =
filters.length === 0 || filters.includes(troubleshoot.productTeam)
filters.length === 0 ||
troubleshoot.tags.some((tag) => filters.includes(tag))
const hasSearch: boolean = troubleshoot.title
.toLowerCase()
.includes(search.toLowerCase())
Expand Down Expand Up @@ -221,7 +222,7 @@ export async function getStaticProps({
slug: data.slug,
createdAt: String(frontmatter.createdAt),
updatedAt: String(frontmatter.updatedAt),
productTeam: String(frontmatter.productTeam),
tags: String(frontmatter.tags ?? '').split(','),
status: frontmatter.status,
})
}
Expand Down

0 comments on commit b186d7f

Please sign in to comment.