@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: newNode.id,
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, newNode);
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: newNode.id,
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, newNode);
117
+ onNodeAdded?.(firstEdgeData.source, firstEdgeData.sourceHandle, finalNode);
118
118
  }
119
119
  restoreEdgesRef.current = null;
120
120
  handleClose();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "3.30.5",
3
+ "version": "3.30.6",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",