refactor(nodes): also select edges when only one node is selected

This commit is contained in:
moklick
2019-07-25 00:00:39 +02:00
parent 81746b2714
commit 9fe6cff644
5 changed files with 222 additions and 99 deletions
+2 -1
View File
@@ -25,7 +25,8 @@ class ReactGraph extends PureComponent {
render() {
const {
style, onElementClick, children, onLoad, onMove, onChange, elements, onElementsRemove
style, onElementClick, children, onLoad,
onMove, onChange, elements, onElementsRemove
} = this.props;
const { nodes, edges } = elements