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

thiagoelg 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 e268656eecd kie-issues#2198: DMN Editor: Copy and paste of data type 
property creates non unique copy (#3383)
e268656eecd is described below

commit e268656eecd90d17d722b38b5b6eaf798e811029
Author: Kusuma04-dev <[email protected]>
AuthorDate: Mon Dec 22 20:55:01 2025 +0530

    kie-issues#2198: DMN Editor: Copy and paste of data type property creates 
non unique copy (#3383)
    
    Co-authored-by: Kusuma <[email protected]>
---
 packages/dmn-editor/src/dataTypes/ItemComponentsTable.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/dmn-editor/src/dataTypes/ItemComponentsTable.tsx 
b/packages/dmn-editor/src/dataTypes/ItemComponentsTable.tsx
index ba04829751e..ad368aa1b34 100644
--- a/packages/dmn-editor/src/dataTypes/ItemComponentsTable.tsx
+++ b/packages/dmn-editor/src/dataTypes/ItemComponentsTable.tsx
@@ -211,7 +211,7 @@ export function ItemComponentsTable({
                           type: "DMN16__tDefinitions",
                           attr: "itemDefinition",
                         })
-                        .randomize();
+                        .randomize({ skipAlreadyAttributedIds: false });
 
                       for (const itemDefinition of clipboard.itemDefinitions) {
                         addItemComponent(parent.itemDefinition["@_id"]!, 
"unshift", itemDefinition);
@@ -615,7 +615,7 @@ export function ItemComponentsTable({
                                             type: "DMN16__tDefinitions",
                                             attr: "itemDefinition",
                                           })
-                                          .randomize();
+                                          .randomize({ 
skipAlreadyAttributedIds: false });
 
                                         for (const itemDefinition of 
clipboard.itemDefinitions) {
                                           
addItemComponent(dt.itemDefinition["@_id"]!, "unshift", itemDefinition);


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

Reply via email to