diff --git a/craft/src/panels/left/LayersPanel.tsx b/craft/src/panels/left/LayersPanel.tsx index 4354e93..fe776a7 100644 --- a/craft/src/panels/left/LayersPanel.tsx +++ b/craft/src/panels/left/LayersPanel.tsx @@ -29,7 +29,7 @@ const LayerNode: React.FC = ({ nodeId, depth }) => { const resolvedName = typeof nodeType === 'object' && nodeType !== null && 'resolvedName' in nodeType ? (nodeType as any).resolvedName : typeof nodeType === 'string' ? nodeType : undefined; - const displayName = node.data.displayName || resolvedName || 'Component'; + const displayName = (node.data.props?.aiName as string) || node.data.displayName || (node.data.type as any)?.resolvedName || 'Node'; const childNodeIds: string[] = node.data.nodes || []; const linkedNodeIds: string[] = Object.values(node.data.linkedNodes || {}) as string[]; const allChildren = [...childNodeIds, ...linkedNodeIds];