web app updated node context to use async

This commit is contained in:
Blake J. Harnden 2018-05-15 16:40:41 -07:00
parent e11798bae5
commit c989d809cb
2 changed files with 48 additions and 55 deletions

View file

@ -245,7 +245,10 @@
const nodeId = coreNetwork.network.getNodeAt(location);
if (nodeId) {
nodeContext.show(nodeId, x, y);
nodeContext.show(nodeId, x, y)
.catch(function(err) {
console.log('error showing node context: ', err);
});
} else {
const edgeId = coreNetwork.network.getEdgeAt(location);
if (edgeId) {