From 7ab9233caf68b2f41129f0cd89d1a12f9a059321 Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Thu, 4 Mar 2021 17:44:19 -0600 Subject: [PATCH] interface: set child graph, not parent graph, upon removing hcild index --- pkg/interface/src/logic/reducers/graph-update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/interface/src/logic/reducers/graph-update.js b/pkg/interface/src/logic/reducers/graph-update.js index 7c2f40b6e..ac00fde66 100644 --- a/pkg/interface/src/logic/reducers/graph-update.js +++ b/pkg/interface/src/logic/reducers/graph-update.js @@ -131,7 +131,7 @@ const addNodes = (json, state) => { } else { const child = graph.get(index[0]); if (child) { - graph = _remove(child.children, index.slice(1)); + child.children = _remove(child.children, index.slice(1)); graph.set(index[0], child); } } @@ -194,7 +194,7 @@ const addNodes = (json, state) => { node ); }); - + state.graphs[resource] = graph; } };