Skip to content

Commit 5b61341

Browse files
committed
Allows setting $$treeLevel to -1 on a row's entity
finaliseAggregations would bomb because the parent row is passed to it but does not exist when you set a row's entity $$treeLevel to -1 so that you can keep it non-parent row.
1 parent ac2c89e commit 5b61341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/tree-base/js/tree-base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@
14951495
* @param {gridRow} row the parent we're finalising
14961496
*/
14971497
finaliseAggregations: function( row ){
1498-
if ( typeof(row.treeNode.aggregations) === 'undefined' ){
1498+
if ( row == null || typeof(row.treeNode.aggregations) === 'undefined' ){
14991499
return;
15001500
}
15011501

0 commit comments

Comments
 (0)