diff --git a/source/selectors/ficheDePaieSelectors.js b/source/selectors/ficheDePaieSelectors.js index a92ffc9d1..669ff9eb2 100644 --- a/source/selectors/ficheDePaieSelectors.js +++ b/source/selectors/ficheDePaieSelectors.js @@ -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] }), {} )