I couldn't get the `item.name` to display.
This commit is contained in:
leekelleher
2024-04-10 17:34:57 +01:00
parent 4ebe6d86b4
commit cbe8dbb191
2 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ const entityActions: Array<ManifestTypes> = [
kind: 'default',
alias: 'Umb.EntityAction.DocumentBlueprint.Create',
name: 'Document Blueprint Options Create Entity Action',
weight: 1200,
api: () => import('./create.action.js'),
forEntityTypes: [UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE, UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE],
meta: {
@@ -21,7 +22,7 @@ const manifestModals: Array<ManifestTypes> = [
type: 'modal',
alias: 'Umb.Modal.DocumentBlueprintOptionsCreate',
name: 'Document Blueprint Options Create Modal',
js: () => import('./modal/document-blueprint-options-create-modal.element.js'),
element: () => import('./modal/document-blueprint-options-create-modal.element.js'),
},
];

View File

@@ -61,7 +61,7 @@ const mapper = (item: DocumentBlueprintTreeItemResponseModel): UmbDocumentBluepr
return {
unique: item.id,
parentUnique: item.parent?.id || null,
name: item.name,
name: (item as any).variants?.[0].name ?? item.name,
entityType: UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE,
isFolder: false,
hasChildren: item.hasChildren,