refactor(edge-types): cleanup

This commit is contained in:
moklick
2022-04-11 13:36:39 +02:00
parent c7fdfedd95
commit 8d5305d240
4 changed files with 14 additions and 11 deletions
+2 -2
View File
@@ -141,7 +141,7 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
(event: React.MouseEvent<SVGGElement, MouseEvent>, isSourceHandle: boolean) => {
const nodeId = isSourceHandle ? target : source;
const handleId = isSourceHandle ? targetHandleId : sourceHandleId;
const handleType = isSourceHandle ? 'target' : 'source'
const handleType = isSourceHandle ? 'target' : 'source';
const isValidConnection = () => true;
const isTarget = isSourceHandle;
@@ -170,7 +170,7 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
isValidConnection,
connectionMode,
handleType,
_onEdgeUpdate
_onEdgeUpdate,
store.getState
);
},