fix: modal label show when no model selected

This commit is contained in:
AkaraChen 2025-01-09 16:39:42 +08:00
parent 90b390346b
commit 6d55ecd7fd
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ const AgentNode: FC<NodeProps<AgentNodeType>> = (props) => {
{inputs.agent_strategy_label}
</SettingItem>
: <SettingItem label={t('workflow.nodes.agent.strategyNotSet')} />}
<Group
{models.length > 0 && <Group
label={<GroupLabel className='mt-1'>
{t('workflow.nodes.agent.model')}
</GroupLabel>}
@ -91,7 +91,7 @@ const AgentNode: FC<NodeProps<AgentNodeType>> = (props) => {
key={model.param}
/>
})}
</Group>
</Group>}
{tools.length > 0 && <Group label={<GroupLabel className='mt-1'>
{t('workflow.nodes.agent.toolbox')}
</GroupLabel>}>