fix: if show var types

This commit is contained in:
Joel 2024-09-20 14:59:46 +08:00
parent ce6ae5732a
commit 146be41b1d
2 changed files with 2 additions and 6 deletions

View File

@ -78,17 +78,12 @@ const VariableTag = ({
{variableName}
</div>
{
varType && (
!isShort && varType && (
<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]' />}
</div>
{
!isShort && varType && (
<div className='shrink-0 ml-0.5 text-text-tertiary'>{capitalize(varType)}</div>
)
}
</Tooltip>
)
}

View File

@ -223,6 +223,7 @@ const ConditionItem = ({
valueSelector={condition.variable_selector || []}
varType={condition.varType}
availableNodes={availableNodes}
isShort
/>
)}