@uipath/apollo-react 3.30.5 → 3.30.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -136,13 +136,13 @@ const AddNodeManager = ({ initializing, customPanel: CustomPanel, createNodeData
|
|
|
136
136
|
if (firstConnection) {
|
|
137
137
|
const firstEdgeSourceHandle = firstConnection.addNewNodeAsSource ? newNodeManifest && registry?.getDefaultHandle(newNodeManifest.nodeType, 'source')?.id : firstConnection.existingHandleId;
|
|
138
138
|
const firstEdgeData = firstConnection.addNewNodeAsSource ? {
|
|
139
|
-
source:
|
|
139
|
+
source: finalNode.id,
|
|
140
140
|
sourceHandle: firstEdgeSourceHandle ?? 'output'
|
|
141
141
|
} : {
|
|
142
142
|
source: firstConnection.existingNodeId,
|
|
143
143
|
sourceHandle: firstConnection.existingHandleId
|
|
144
144
|
};
|
|
145
|
-
onNodeAdded?.(firstEdgeData.source, firstEdgeData.sourceHandle,
|
|
145
|
+
onNodeAdded?.(firstEdgeData.source, firstEdgeData.sourceHandle, finalNode);
|
|
146
146
|
}
|
|
147
147
|
restoreEdgesRef.current = null;
|
|
148
148
|
handleClose();
|
|
@@ -108,13 +108,13 @@ const AddNodeManager = ({ initializing, customPanel: CustomPanel, createNodeData
|
|
|
108
108
|
if (firstConnection) {
|
|
109
109
|
const firstEdgeSourceHandle = firstConnection.addNewNodeAsSource ? newNodeManifest && registry?.getDefaultHandle(newNodeManifest.nodeType, 'source')?.id : firstConnection.existingHandleId;
|
|
110
110
|
const firstEdgeData = firstConnection.addNewNodeAsSource ? {
|
|
111
|
-
source:
|
|
111
|
+
source: finalNode.id,
|
|
112
112
|
sourceHandle: firstEdgeSourceHandle ?? 'output'
|
|
113
113
|
} : {
|
|
114
114
|
source: firstConnection.existingNodeId,
|
|
115
115
|
sourceHandle: firstConnection.existingHandleId
|
|
116
116
|
};
|
|
117
|
-
onNodeAdded?.(firstEdgeData.source, firstEdgeData.sourceHandle,
|
|
117
|
+
onNodeAdded?.(firstEdgeData.source, firstEdgeData.sourceHandle, finalNode);
|
|
118
118
|
}
|
|
119
119
|
restoreEdgesRef.current = null;
|
|
120
120
|
handleClose();
|