We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af99f43 commit d445836Copy full SHA for d445836
src/app/components/pages/Concepts.tsx
@@ -88,7 +88,8 @@ export const Concepts = withRouter((props: RouteComponentProps) => {
88
89
const stageCounts = getFilteredStageOptions().reduce((acc, s) => ({
90
...acc,
91
- [s.value]: shortcutAndFilter(listConceptsQuery?.data?.results, true)?.filter(c => c.audience?.some(a => a.stage?.includes(s.value))).length || 0
+ [s.value]: listConceptsQuery?.data?.results?.filter(c => c.audience?.some(a => a.stage?.includes(s.value))
92
+ && (!filters.length || c.tags?.some(t => filters.includes(t))))?.length || 0
93
}), {});
94
95
function doSearch(e?: FormEvent<HTMLFormElement>) {
0 commit comments