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(['', '']) - } - }) } })