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]; } };