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 722c8e5d96a NO-ISSUE: DMN Editor: Add `label` and `typeRef` fallback 
values to Boxed Function Expression (#2407)
722c8e5d96a is described below

commit 722c8e5d96af5a3a6f3cde170321cdff874dc837
Author: Luiz João Motta <[email protected]>
AuthorDate: Thu Jun 6 13:12:42 2024 -0300

    NO-ISSUE: DMN Editor: Add `label` and `typeRef` fallback values to Boxed 
Function Expression (#2407)
---
 packages/dmn-editor/src/boxedExpressions/BoxedExpressionScreen.tsx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/packages/dmn-editor/src/boxedExpressions/BoxedExpressionScreen.tsx 
b/packages/dmn-editor/src/boxedExpressions/BoxedExpressionScreen.tsx
index 6c553496da6..3e35591cb4d 100644
--- a/packages/dmn-editor/src/boxedExpressions/BoxedExpressionScreen.tsx
+++ b/packages/dmn-editor/src/boxedExpressions/BoxedExpressionScreen.tsx
@@ -410,6 +410,8 @@ export function drgElementToBoxedExpression(
     return expressionHolder.encapsulatedLogic
       ? {
           __$$element: "functionDefinition",
+          "@_label": expressionHolder.encapsulatedLogic["@_label"] ?? 
expressionHolder["@_name"],
+          "@_typeRef": expressionHolder.encapsulatedLogic["@_typeRef"] ?? 
expressionHolder.variable?.["@_typeRef"],
           ...expressionHolder.encapsulatedLogic,
         }
       : {


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

Reply via email to