Skip to content

Commit

Permalink
Investigated part of code and described changes within internal sourc…
Browse files Browse the repository at this point in the history
…e data method #7031
  • Loading branch information
wszymanski committed Jul 21, 2020
1 parent 6c1b847 commit 1f938be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ class DataSource {
const rangeEnd = this.countFirstRowKeys() - 1;

rangeEach(rangeStart, rangeEnd, (column) => {
// TODO: Can it return `null`?
// It will return `null` for index beyond table boundaries.
const prop = this.colToProp(column);

if (column >= (startColumn || rangeStart) && column <= (endColumn || rangeEnd) && !Number.isInteger(prop)) {
if (column >= (startColumn || rangeStart) && column <= (endColumn || rangeEnd) && prop !== null) {
const cellValue = this.getAtPhysicalCell(row, prop, dataRow);

if (toArray) {
Expand Down

0 comments on commit 1f938be

Please sign in to comment.