chore(prettier): full repo linting and code reformatting once and for all (#3627)

This commit is contained in:
Alireza authored and GitHub committed 2023-09-01 16:19:39 -04:00
1 parent 01500a2d4c
commit 9045ddaedc
656 files changed
+21737 -20628

No files matched your search

@@ -1,7 +1,4 @@
export default function createAndDownloadTMTVReport(
segReport,
additionalReportRows
) {
export default function createAndDownloadTMTVReport(segReport, additionalReportRows) {
const firstReport = segReport[Object.keys(segReport)[0]];
const columns = Object.keys(firstReport);
const csv = [columns.join(',')];
@@ -11,9 +8,7 @@ export default function createAndDownloadTMTVReport(
columns.forEach(column => {
// if it is array then we need to replace , with space to avoid csv parsing error
row.push(
Array.isArray(segmentation[column])
? segmentation[column].join(' ')
: segmentation[column]
Array.isArray(segmentation[column]) ? segmentation[column].join(' ') : segmentation[column]
);
});
csv.push(row.join(','));