jomarko commented on code in PR #4045:
URL:
https://github.com/apache/incubator-kie-tools/pull/4045#discussion_r4269610999
##########
packages/bpmn-editor/src/mutations/renameGlobalProperties.ts:
##########
@@ -39,4 +39,12 @@ export function updateProcessId({
participant["@_processRef"] = newId;
}
}
+
+ // Keep the DI layer in sync, otherwise BPMNPlane.bpmnElement becomes a
dangling IDREF.
+ definitions["bpmndi:BPMNDiagram"]?.forEach((diagram) => {
Review Comment:
also on other places we assume `definitions["bpmndi:BPMNDiagram"]` is an
array, see:
- packages/bpmn-editor/tests-e2e/__fixtures__/jsonModel.ts
- packages/bpmn-editor/src/store/computeDiagramData.ts
- packages/bpmn-editor/src/mutations/addOrGetProcessAndDiagramElements.ts
keeping the code as it is
--
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]