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

tiagobento 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 38f686f3807 NO-ISSUE: Boxed Expression Editor in DMN Editor produces 
non unique IDs for BKM node (#2355)
38f686f3807 is described below

commit 38f686f380777092cce0cd60722fc3a0c3cf8215
Author: Daniel José dos Santos <[email protected]>
AuthorDate: Wed May 22 19:54:40 2024 -0300

    NO-ISSUE: Boxed Expression Editor in DMN Editor produces non unique IDs for 
BKM node (#2355)
---
 packages/dmn-editor/src/boxedExpressions/BoxedExpressionScreen.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/dmn-editor/src/boxedExpressions/BoxedExpressionScreen.tsx 
b/packages/dmn-editor/src/boxedExpressions/BoxedExpressionScreen.tsx
index b9109cbb713..6c553496da6 100644
--- a/packages/dmn-editor/src/boxedExpressions/BoxedExpressionScreen.tsx
+++ b/packages/dmn-editor/src/boxedExpressions/BoxedExpressionScreen.tsx
@@ -414,7 +414,7 @@ export function drgElementToBoxedExpression(
         }
       : {
           __$$element: "functionDefinition",
-          "@_id": expressionHolder.variable?.["@_id"] ?? generateUuid(),
+          "@_id": generateUuid(),
           "@_kind": "FEEL",
           expression: undefined!, // SPEC DISCREPANCY: Starting without an 
expression gives users the ability to select the expression type.
           formalParameter: [],


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

Reply via email to