mirror of
https://github.com/langgenius/dify.git
synced 2026-04-30 05:06:29 +08:00
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}
|
{inputs.agent_strategy_label}
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
: <SettingItem label={t('workflow.nodes.agent.strategyNotSet')} />}
|
: <SettingItem label={t('workflow.nodes.agent.strategyNotSet')} />}
|
||||||
<Group
|
{models.length > 0 && <Group
|
||||||
label={<GroupLabel className='mt-1'>
|
label={<GroupLabel className='mt-1'>
|
||||||
{t('workflow.nodes.agent.model')}
|
{t('workflow.nodes.agent.model')}
|
||||||
</GroupLabel>}
|
</GroupLabel>}
|
||||||
@ -91,7 +91,7 @@ const AgentNode: FC<NodeProps<AgentNodeType>> = (props) => {
|
|||||||
key={model.param}
|
key={model.param}
|
||||||
/>
|
/>
|
||||||
})}
|
})}
|
||||||
</Group>
|
</Group>}
|
||||||
{tools.length > 0 && <Group label={<GroupLabel className='mt-1'>
|
{tools.length > 0 && <Group label={<GroupLabel className='mt-1'>
|
||||||
{t('workflow.nodes.agent.toolbox')}
|
{t('workflow.nodes.agent.toolbox')}
|
||||||
</GroupLabel>}>
|
</GroupLabel>}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user