MohammadMu99 commented on code in PR #4015:
URL: 
https://github.com/apache/incubator-kie-tools/pull/4015#discussion_r4411476849


##########
packages/bpmn-editor/src/mutations/addEdge.ts:
##########
@@ -284,6 +285,19 @@ export function addEdge({
     "di:waypoint": newWaypoints,
   };
 
+  // Keep label with kept waypoints.
+  const removedLabel = removedBpmnEdge?.["bpmndi:BPMNLabel"];
+  if (__readonly_keepWaypoints && removedLabel?.["dc:Bounds"]) {
+    newBpmnEdge["bpmndi:BPMNLabel"] = {
+      ...removedLabel,

Review Comment:
   Thanks! Done in 3782596. The label now always gets a new id with 
generateUuid(), both here and in the reconnect path in BpmnDiagram.tsx



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to