mirror of https://github.com/langgenius/dify.git
refactor: rename isHideNodeLabel to isShowNodeLabel for clarity in variable label component
This commit is contained in:
parent
afddc56bb4
commit
ec0c144eb2
|
|
@ -27,7 +27,7 @@ const VariableLabel = ({
|
|||
rightSlot,
|
||||
}: VariablePayload) => {
|
||||
const varColorClassName = useVarColor(variables, isExceptionVariable)
|
||||
const isHideNodeLabel = !(isENV(variables) || isConversationVar(variables) || isGlobalVar(variables) || isRagVariableVar(variables))
|
||||
const isShowNodeLabel = !(isENV(variables) || isConversationVar(variables) || isGlobalVar(variables) || isRagVariableVar(variables))
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
|
|
@ -37,7 +37,7 @@ const VariableLabel = ({
|
|||
onClick={onClick}
|
||||
ref={ref}
|
||||
>
|
||||
{ isHideNodeLabel && (
|
||||
{isShowNodeLabel && (
|
||||
<VariableNodeLabel
|
||||
nodeType={nodeType}
|
||||
nodeTitle={nodeTitle}
|
||||
|
|
|
|||
Loading…
Reference in New Issue