Merge pull request #4549 from urbit/la/fix-stupid

This commit is contained in:
L 2021-03-04 17:52:56 -06:00 committed by GitHub
commit 46b1bd97b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ const addNodes = (json, state) => {
} else { } else {
const child = graph.get(index[0]); const child = graph.get(index[0]);
if (child) { if (child) {
graph = _remove(child.children, index.slice(1)); child.children = _remove(child.children, index.slice(1));
graph.set(index[0], child); graph.set(index[0], child);
} }
} }
@ -194,7 +194,7 @@ const addNodes = (json, state) => {
node node
); );
}); });
state.graphs[resource] = graph; state.graphs[resource] = graph;
} }
}; };