feat(selection): fixed selection

This commit is contained in:
moklick
2019-07-18 00:29:56 +02:00
parent 1dbeebfb27
commit 3cf627668b
3 changed files with 29 additions and 13 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export default NodeComponent => (props) => {
const { position } = __rg;
const { id } = data;
const [ x, y, k ] = graphContext.state.transform;
const selected = graphContext.state.selectedNodes.includes(id);
const selected = graphContext.state.selectedNodeIds.includes(id);
const nodeClasses = cx('react-graph__node', { selected });
useEffect(() => {