Skip to content

Commit b6d8c7d

Browse files
tamu-sad-iiiartlowel
authored andcommitted
Filter expanded nodes by id
Co-Authored-By: Art Lowel <1567693+artlowel@users.noreply.github.com> (cherry picked from commit dc2ef98)
1 parent 1d0ca04 commit b6d8c7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/community-list-page/community-list/community-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class CommunityListComponent implements OnInit, OnDestroy {
8484
toggleExpanded(node: FlatNode) {
8585
this.loadingNode = node;
8686
if (node.isExpanded) {
87-
this.expandedNodes = this.expandedNodes.filter((node2) => node2.name !== node.name);
87+
this.expandedNodes = this.expandedNodes.filter((node2) => node2.id !== node.id);
8888
node.isExpanded = false;
8989
} else {
9090
this.expandedNodes.push(node);

0 commit comments

Comments
 (0)