mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Filter expanded nodes by id
Co-Authored-By: Art Lowel <1567693+artlowel@users.noreply.github.com>
(cherry picked from commit dc2ef989e6
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
1d0ca04992
commit
b6d8c7d18e
@@ -84,7 +84,7 @@ export class CommunityListComponent implements OnInit, OnDestroy {
|
|||||||
toggleExpanded(node: FlatNode) {
|
toggleExpanded(node: FlatNode) {
|
||||||
this.loadingNode = node;
|
this.loadingNode = node;
|
||||||
if (node.isExpanded) {
|
if (node.isExpanded) {
|
||||||
this.expandedNodes = this.expandedNodes.filter((node2) => node2.name !== node.name);
|
this.expandedNodes = this.expandedNodes.filter((node2) => node2.id !== node.id);
|
||||||
node.isExpanded = false;
|
node.isExpanded = false;
|
||||||
} else {
|
} else {
|
||||||
this.expandedNodes.push(node);
|
this.expandedNodes.push(node);
|
||||||
|
Reference in New Issue
Block a user