Skip to content

Commit

Permalink
Fixe l'affichage de la priorité sur les FAs liées à un indicateur
Browse files Browse the repository at this point in the history
  • Loading branch information
farnoux committed Jan 6, 2025
1 parent aede168 commit bd1824d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/api/src/indicateurs/actions/indicateur.fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,11 @@ export async function selectIndicateurFiches(
.eq('fiche_resume.collectivite_id', collectiviteId)
.returns<any[]>();

return data ? (objectToCamel(data) as FicheResume[]) : [];
return data
? (objectToCamel(
data.map((f) => ({ ...f, priorite: f.niveau_priorite }))
) as FicheResume[])
: [];
}

/**
Expand Down

0 comments on commit bd1824d

Please sign in to comment.