From 13bbd802e95b0d803fabbb8083366d510d9a34db Mon Sep 17 00:00:00 2001 From: Nicolas Pennec Date: Fri, 25 Oct 2024 11:08:17 +0200 Subject: [PATCH] [stats] fix CSV export with data on matching columns --- src/lib/csv.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/csv.js b/src/lib/csv.js index 52c622073..4549fee71 100644 --- a/src/lib/csv.js +++ b/src/lib/csv.js @@ -326,13 +326,13 @@ const csv = { total, lineMap ) + } else { + Object.keys(mainStats[entryId].all).forEach(taskStatusId => { + if (!['max_retake_count', 'evolution'].includes(taskStatusId)) { + lineMap[taskStatusId] = lineMap[taskStatusId].concat(['', '']) + } + }) } - } else { - Object.keys(mainStats[entryId].all).forEach(taskStatusId => { - if (!['max_retake_count', 'evolution'].includes(taskStatusId)) { - lineMap[taskStatusId] = lineMap[taskStatusId].concat(['', '']) - } - }) } })