From 50e5b64d54704ecddc71df5da3e43b480d4df982 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 24 Jan 2019 17:43:33 -0500 Subject: [PATCH] LP1823393 Tree component collapsed node display fix Avoid added child tree nodes when parent nodes are hidden. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton Signed-off-by: Jane Sandberg --- Open-ILS/src/eg2/src/app/share/tree/tree.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/tree/tree.ts b/Open-ILS/src/eg2/src/app/share/tree/tree.ts index cca36d4a70..68e01fee9f 100644 --- a/Open-ILS/src/eg2/src/app/share/tree/tree.ts +++ b/Open-ILS/src/eg2/src/app/share/tree/tree.ts @@ -73,9 +73,8 @@ export class Tree { // Avoid adding hidden child nodes to the list. } else { nodes.push(node); + node.children.forEach(n => recurseTree(n, depth, !node.expanded)); } - - node.children.forEach(n => recurseTree(n, depth, !node.expanded)); }; recurseTree(this.rootNode, 0, false); -- 2.11.0