Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
(treeBase): allow setting row.$$treeLevel to undefined
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 angular-ui#5548
  • Loading branch information
MartijnWelker committed Oct 10, 2018
1 parent 1051dee commit 242511c
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 242511c

Please sign in to comment.