Skip to content

Commit

Permalink
Merge pull request #3306 from incubateur-ademe/TET-3434/fix/indicateu…
Browse files Browse the repository at this point in the history
…rs-parents

fix(indicateurs): Dans la recherche, afficher uniquement les parents pour les indicateurs composés
  • Loading branch information
farnoux authored Sep 17, 2024
2 parents 7b6748b + 75790bf commit cf53a8d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ export async function fetchFilteredIndicateurs(
// une recherche par id ou si un des filtres complémentaires est actif)
const filtrerParParent =
!filtresOptions.estPerso &&
filters.categorieNoms?.length &&
!filters.categorieNoms.find(nom => nom === 'crte') &&
!filters.categorieNoms?.find(nom => nom === 'crte') &&
!searchById &&
!Object.values(filtrerPar).includes(true);

Expand Down

0 comments on commit cf53a8d

Please sign in to comment.