mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 12:25:54 +08:00
fix: if show var types
This commit is contained in:
parent
ce6ae5732a
commit
146be41b1d
@ -78,17 +78,12 @@ const VariableTag = ({
|
|||||||
{variableName}
|
{variableName}
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
varType && (
|
!isShort && varType && (
|
||||||
<div className='shrink-0 ml-0.5 text-text-tertiary'>{capitalize(varType)}</div>
|
<div className='shrink-0 ml-0.5 text-text-tertiary'>{capitalize(varType)}</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
{!isValid && <RiErrorWarningFill className='ml-0.5 w-3 h-3 text-[#D92D20]' />}
|
{!isValid && <RiErrorWarningFill className='ml-0.5 w-3 h-3 text-[#D92D20]' />}
|
||||||
</div>
|
</div>
|
||||||
{
|
|
||||||
!isShort && varType && (
|
|
||||||
<div className='shrink-0 ml-0.5 text-text-tertiary'>{capitalize(varType)}</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -223,6 +223,7 @@ const ConditionItem = ({
|
|||||||
valueSelector={condition.variable_selector || []}
|
valueSelector={condition.variable_selector || []}
|
||||||
varType={condition.varType}
|
varType={condition.varType}
|
||||||
availableNodes={availableNodes}
|
availableNodes={availableNodes}
|
||||||
|
isShort
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user