mirror of https://github.com/langgenius/dify.git
fix: modal label show when no model selected
This commit is contained in:
parent
90b390346b
commit
6d55ecd7fd
|
|
@ -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>}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue