From 6e18225c5c48181b26b1eb97d6846fde4ccf5933 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Fri, 11 Dec 2020 16:07:19 +1000 Subject: [PATCH] graph-store: remove-graph in keys --- pkg/interface/src/logic/reducers/graph-update.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/interface/src/logic/reducers/graph-update.js b/pkg/interface/src/logic/reducers/graph-update.js index 0a7eef90cd..c1fe98fbea 100644 --- a/pkg/interface/src/logic/reducers/graph-update.js +++ b/pkg/interface/src/logic/reducers/graph-update.js @@ -75,10 +75,12 @@ const addGraph = (json, state) => { const removeGraph = (json, state) => { const data = _.get(json, 'remove-graph', false); if (data) { + if (!('graphs' in state)) { state.graphs = {}; } let resource = data.ship + '/' + data.name; + state.graphKeys.delete(resource); delete state.graphs[resource]; } };