Commit 1e621022 authored by Patrik Meijer's avatar Patrik Meijer
Browse files

Fix typo in ptr creation

parent 02e0b003
...@@ -463,7 +463,7 @@ ${activeSelection.includes(edgeId) ? ' in-active-selection' : ''}`, ...@@ -463,7 +463,7 @@ ${activeSelection.includes(edgeId) ? ' in-active-selection' : ''}`,
} }
}); });
this.cy.on('vclick', (e) => { this.cy.on('vclick', 'node', (e) => {
this.reposition = {}; this.reposition = {};
const {setActiveSelection, gmeClient} = this.props; const {setActiveSelection, gmeClient} = this.props;
const {createPointer} = this.state; const {createPointer} = this.state;
...@@ -504,7 +504,7 @@ ${activeSelection.includes(edgeId) ? ' in-active-selection' : ''}`, ...@@ -504,7 +504,7 @@ ${activeSelection.includes(edgeId) ? ' in-active-selection' : ''}`,
this.setState({ this.setState({
createPointer: { createPointer: {
nodeId: createPointer.nodeId, nodeId: createPointer.nodeId,
prtName: createPointer.prtName, ptrName: createPointer.ptrName,
target: e.target.id(), target: e.target.id(),
}, },
}); });
...@@ -629,6 +629,7 @@ ${activeSelection.includes(edgeId) ? ' in-active-selection' : ''}`, ...@@ -629,6 +629,7 @@ ${activeSelection.includes(edgeId) ? ' in-active-selection' : ''}`,
onClose={() => { onClose={() => {
this.setState({showNodeMenu: null}); this.setState({showNodeMenu: null});
}} }}
createPointer = {this.startNewPointer}
setActiveNode={setActiveNode} setActiveNode={setActiveNode}
/>) : null} />) : null}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment