Skip to content

Commit

Permalink
fix: tri des rencontres/passages/observations par défaut par date de …
Browse files Browse the repository at this point in the history
…la plus récente à la plus ancienne dans le nouveau compte-rendu
  • Loading branch information
Arnaud AMBROSELLI committed Feb 2, 2024
1 parent 94f4b93 commit 7d51774
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dashboard/src/scenes/report/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ const itemsForReportsSelector = selectorFamily({
consultations: Object.values(consultations),
comments: Object.values(comments),
commentsMedical: Object.values(commentsMedical),
passages: Object.values(passages),
rencontres: Object.values(rencontres),
observations: Object.values(observations),
passages: Object.values(passages).sort((a, b) => (a.date >= b.date ? -1 : 1)),
rencontres: Object.values(rencontres).sort((a, b) => (a.date >= b.date ? -1 : 1)),
observations: Object.values(observations).sort((a, b) => (a.date >= b.date ? -1 : 1)),
reports: Object.values(reports),
};
},
Expand Down

0 comments on commit 7d51774

Please sign in to comment.