mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-01 09:49:03 +08:00
fix(AgentSettings): correct agent name display logic in AgentLabel
This commit is contained in:
parent
ef7433c823
commit
4bd492f498
@ -41,7 +41,7 @@ export const AgentLabel: React.FC<AgentLabelProps> = ({ agent, classNames, avata
|
||||
<div className={cn('flex items-center gap-2', classNames?.container)}>
|
||||
{isDefault && <Avatar src={src} {...avatarProps} className={cn('h-6 w-6 text-lg', classNames?.avatar)} />}
|
||||
{!isDefault && <EmojiIcon emoji={emoji || '⭐️'} className={classNames?.avatar} />}
|
||||
<span className={classNames?.name}>{(agent?.name ?? agent?.type) ? getAgentTypeLabel(agent.type) : ''}</span>
|
||||
<span className={classNames?.name}>{agent?.name ?? (agent?.type ? getAgentTypeLabel(agent.type) : '')}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user