refactor(elements): simplfy node and edge handling

This commit is contained in:
moklick
2019-07-31 18:01:15 +02:00
parent 3403203adb
commit e348cccc76
14 changed files with 4105 additions and 4157 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ const onNodeClick = (evt, { onClick, dispatch, id, type, position, data }) => {
const node = { id, type, position, data }
dispatch(setSelectedElements(node));
dispatch(setSelectedElements({ id, type }));
onClick(node);
};