From 6ba443ceea3b942b6f98354cf6555d8536314538 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Fri, 6 Sep 2019 12:57:33 +0200 Subject: [PATCH] :art: remet les cotisations dans le bon ordre dans la fiche de paie --- source/selectors/ficheDePaieSelectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] }), {} )