Skip to content

Commit

Permalink
fix: gw_getRangeSelections does not check for the node type
Browse files Browse the repository at this point in the history
  • Loading branch information
hyyan committed Jul 18, 2019
1 parent 54fcbe5 commit 176be07
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 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.

5 changes: 3 additions & 2 deletions client/src/api/rows.js
Expand Up @@ -252,9 +252,10 @@ export function gw_getRangeSelections(id) {
const rows = [];

for (let rowIndex = starIndex; rowIndex <= endIndex; rowIndex++) {
const node = gw_parseNode(model.getRow(rowIndex), context);
const node = model.getRow(rowIndex);
if (node) {
rows.push(node);
const parsedNode = gw_parseNode(node, context);
if(parsedNode) rows.push(parsedNode);
}
}

Expand Down

0 comments on commit 176be07

Please sign in to comment.