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

yamer 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 8ce3224c3c8 kie-issues#1592: Custom Item Definitions shows <Undefined> 
type on the new DMN Editor (#2837)
8ce3224c3c8 is described below

commit 8ce3224c3c8628c5e69e44474f75d4121d2cec62
Author: Kusuma04-dev <kusumachinnama...@gmail.com>
AuthorDate: Thu Jan 9 19:36:29 2025 +0530

    kie-issues#1592: Custom Item Definitions shows <Undefined> type on the new 
DMN Editor (#2837)
    
    Co-authored-by: chinnamatli kusumalatha 
<chinnamatlikusumalatha@chinnamatlis-MacBook-Pro.local>
---
 packages/dmn-editor/src/dataTypes/DataTypeName.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/dmn-editor/src/dataTypes/DataTypeName.tsx 
b/packages/dmn-editor/src/dataTypes/DataTypeName.tsx
index b816e114925..06262f0227b 100644
--- a/packages/dmn-editor/src/dataTypes/DataTypeName.tsx
+++ b/packages/dmn-editor/src/dataTypes/DataTypeName.tsx
@@ -32,6 +32,7 @@ import { InlineFeelNameInput, OnInlineFeelNameRenamed } from 
"../feel/InlineFeel
 import { useExternalModels } from 
"../includedModels/DmnEditorDependenciesContext";
 import { State } from "../store/Store";
 import { DmnBuiltInDataType } from 
"@kie-tools/boxed-expression-component/dist/api";
+import { isStruct } from "./DataTypeSpec";
 
 export function DataTypeName({
   isReadOnly,
@@ -137,7 +138,7 @@ export function DataTypeName({
           />
           {!isEditingLabel && (
             <TypeRefLabel
-              typeRef={itemDefinition.typeRef?.__$$text ?? 
DmnBuiltInDataType.Undefined}
+              typeRef={isStruct(itemDefinition) ? "" : 
itemDefinition.typeRef?.__$$text ?? DmnBuiltInDataType.Undefined}
               isCollection={itemDefinition["@_isCollection"]}
               relativeToNamespace={relativeToNamespace}
             />


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@kie.apache.org
For additional commands, e-mail: commits-h...@kie.apache.org

Reply via email to