Skip to content

Commit

Permalink
fix(JS): gw_getRangeSelections should ignore empty ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
hyyan committed Jul 18, 2019
1 parent 0d4841e commit 54fcbe5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
20 changes: 13 additions & 7 deletions client/dist/bbj-grid-widget.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/dist/bbj-grid-widget.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/dist/report.html

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions client/src/api/rows.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,15 @@ export function gw_getRangeSelections(id) {
const rows = [];

for (let rowIndex = starIndex; rowIndex <= endIndex; rowIndex++) {
const node = model.getRow(rowIndex);

rows.push(gw_parseNode(node, context));
const node = gw_parseNode(model.getRow(rowIndex), context);
if (node) {
rows.push(node);
}
}

result.push({ rows, columns });
if (rows.length && columns.length) {
result.push({ rows, columns });
}
//}
});

Expand Down

0 comments on commit 54fcbe5

Please sign in to comment.