Skip to content

Commit

Permalink
modify formatValue check
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshatJawne committed May 31, 2024
1 parent 81dcb31 commit b2a696d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions packages/iris-grid/src/IrisGridTreeTableModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,16 @@ class IrisGridTreeTableModel extends IrisGridTableModelTemplate<
this.viewportData.rows[r - this.viewportData.offset];
assertNotNull(intersection.startColumn);
assertNotNull(intersection.endColumn);
for (
let c = intersection.startColumn;
c <= intersection.endColumn;
c += 1
) {
resultRow.push(
formatValue?.(viewportRow.data.get(c)?.value, this.columns[c])
);
if (formatValue != null) {
for (
let c = intersection.startColumn;
c <= intersection.endColumn;
c += 1
) {
resultRow.push(
formatValue(viewportRow.data.get(c)?.value, this.columns[c])
);
}
}
result.push(resultRow);
}
Expand Down

0 comments on commit b2a696d

Please sign in to comment.