🎨 remet les cotisations dans le bon ordre dans la fiche de paie

pull/654/head
Johan Girod 2019-09-06 12:57:33 +02:00
parent 07ad6b2a33
commit 6ba443ceea
No known key found for this signature in database
GPG Key ID: 9E27B57DA2E8AE12
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ const groupByBranche = flatRules => (
const cotisationsMap = cotisations.reduce(
(acc, cotisation) => ({
...acc,
[cotisation.branche]: [cotisation, ...(acc[cotisation.branche] || [])]
[cotisation.branche]: [...(acc[cotisation.branche] || []), cotisation]
}),
{}
)