Skip to content

Commit

Permalink
open units in nested groups (apache#23593)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkhan.nausharipov committed Nov 3, 2022
1 parent 7f19274 commit 7853a6c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,17 @@ class ContentTreeController extends ChangeNotifier {
expandedIds.add(node.id);

if (node is GroupModel) {
_currentNode = node.nodes.first;
} else {
onNodeTap(node.nodes.first);
} else
// TODO(nausharipov): is there a need to check if it's a unit?
{
_currentNode = node;
}

if (_currentNode != null) {
_treeIds = _getNodeAncestors(_currentNode!, [_currentNode!.id]);
}

notifyListeners();
}

Expand Down

0 comments on commit 7853a6c

Please sign in to comment.