Skip to content

Commit

Permalink
fix(treeBase): allow setting row.$$treeLevel to undefined (#6867)
Browse files Browse the repository at this point in the history
Setting the $$treeLevel to undefined allows you to change a header row into a non-header row

Fixes #5548
  • Loading branch information
MartijnWelker authored and mportuga committed Oct 16, 2018
1 parent fd869bd commit 3057b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/tree-base/js/tree-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@
var aggregations = service.getAggregations( grid );

function createNode( row ) {
if ( typeof(row.entity.$$treeLevel) !== 'undefined' && row.treeLevel !== row.entity.$$treeLevel ) {
if ( !row.internalRow && row.treeLevel !== row.entity.$$treeLevel ) {
row.treeLevel = row.entity.$$treeLevel;
}

Expand Down

0 comments on commit 3057b46

Please sign in to comment.