react-flow-designer
Advanced tools
Comparing version 0.16.1 to 0.16.2
@@ -118,4 +118,10 @@ 'use strict'; | ||
}); | ||
var calculatePortPosition = state.getIn(['nodeTypes', nodeType, 'component']).calculatePortPosition; | ||
return cumulativeState.mergeIn(['ports'], calculatePortPosition(ports, node.getPosition(), node.getSize())); | ||
var component = state.getIn(['nodeTypes', nodeType, 'component']); | ||
if (component) { | ||
var calculatePortPosition = component.calculatePortPosition; | ||
if (calculatePortPosition) { | ||
return cumulativeState.mergeIn(['ports'], calculatePortPosition(ports, node.getPosition(), node.getSize())); | ||
} | ||
} | ||
return state; | ||
}, state); | ||
@@ -122,0 +128,0 @@ } |
@@ -98,3 +98,3 @@ { | ||
}, | ||
"version": "0.16.1" | ||
"version": "0.16.2" | ||
} |
352416
3130