This is an automated email from the ASF dual-hosted git repository.

ljmotta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new 59cda3c2a15 NO-ISSUE: DMN Editor: Remove `index` and 
`dmnElementRefQName` from `dmnShape` (#2410)
59cda3c2a15 is described below

commit 59cda3c2a159d6cd88329fd3214d51de2c1f90d9
Author: Luiz João Motta <[email protected]>
AuthorDate: Thu Jun 6 19:50:10 2024 -0300

    NO-ISSUE: DMN Editor: Remove `index` and `dmnElementRefQName` from 
`dmnShape` (#2410)
---
 .../dmn-editor/src/mutations/addExistingDecisionServiceToDrd.ts     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/packages/dmn-editor/src/mutations/addExistingDecisionServiceToDrd.ts 
b/packages/dmn-editor/src/mutations/addExistingDecisionServiceToDrd.ts
index 3dcedc844c1..84817732264 100644
--- a/packages/dmn-editor/src/mutations/addExistingDecisionServiceToDrd.ts
+++ b/packages/dmn-editor/src/mutations/addExistingDecisionServiceToDrd.ts
@@ -358,11 +358,13 @@ export async function 
addAutoGeneratedDecisionServiceToDrd({
   // Copy the DS and Decisions to current DRD and remove Dummy DRD;
   if (dummyDrdIndex !== __readonly_drdIndex) {
     // The auto generated shape.
-    const dsShape = 
dummyIndexedDrd.dmnShapesByHref.get(__readonly_decisionServiceHrefRelativeToThisDmn)!;
+    const { index, dmnElementRefQName, ...dsShape } = 
dummyIndexedDrd.dmnShapesByHref.get(
+      __readonly_decisionServiceHrefRelativeToThisDmn
+    )!;
     drds![__readonly_drdIndex]["dmndi:DMNDiagramElement"] ??= [];
     drds?.[__readonly_drdIndex]["dmndi:DMNDiagramElement"]?.push({ ...dsShape, 
__$$element: "dmndi:DMNShape" });
     for (const decisionHref of 
__readonly_containedDecisionHrefsRelativeToThisDmn) {
-      const decisionShape = dummyIndexedDrd.dmnShapesByHref.get(decisionHref)!;
+      const { index, dmnElementRefQName, ...decisionShape } = 
dummyIndexedDrd.dmnShapesByHref.get(decisionHref)!;
       drds?.[__readonly_drdIndex]["dmndi:DMNDiagramElement"]?.push({
         ...decisionShape,
         __$$element: "dmndi:DMNShape",


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

Reply via email to