You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ti...@apache.org on 2024/06/06 16:12:46 UTC

(incubator-kie-tools) branch main updated: NO-ISSUE: DMN Editor: Add `label` and `typeRef` fallback values to Boxed Function Expression (#2407)

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 <lu...@gmail.com>
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: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org