refactor: rename isHideNodeLabel to isShowNodeLabel for clarity in variable label component

This commit is contained in:
twwu 2025-12-24 16:21:07 +08:00
parent afddc56bb4
commit ec0c144eb2
1 changed files with 2 additions and 2 deletions

View File

@ -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}