Skip to content

Commit

Permalink
fix(core/reports): export correct value for tables
Browse files Browse the repository at this point in the history
  • Loading branch information
sara-gnucoop committed Aug 30, 2022
1 parent 4b69bb5 commit 45351e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/core/reports/src/widget-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ export class AjfWidgetExport {
}
tableData[i].forEach((elem: AjfTableCell, idxElem: number) => {
let val = elem.value.changingThisBreaksApplicationSecurity;
if (iconsMap[val]) {
if (val === undefined) {
val = elem.value;
}
if (val != null && iconsMap[val]) {
val = iconsMap[val];
}
res.push(val);
Expand Down

0 comments on commit 45351e5

Please sign in to comment.