Skip to content

Commit

Permalink
feat: xls export for projects and units finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeen committed Jan 23, 2022
1 parent 86451d8 commit 853f0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/xls.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const createXlsFromSequelizeResults = (rows, model, hex = false, csv = fa
if (!Object.keys(sheets).includes(colNames[i] + 's')) {
sheets[colNames[i] + 's'] = { name: colNames[i] + 's', data: [Object.keys(v).concat([colNames[i].split('_').join('') + 'Id'])], };
}
sheets[colNames[i] + 's'].data.push(Object.values(v).concat([encodeValue(assocColVal.id, hex)]));
sheets[colNames[i] + 's'].data.push(Object.values(v).map(val1 => encodeValue(val1, hex)).concat([encodeValue(assocColVal.id, hex)]));
}
xlsRow.push(encodeValue(v, hex));
}
Expand Down

0 comments on commit 853f0ce

Please sign in to comment.