fix: fix node valid detect (#21709)

This commit is contained in:
Minamiyama 2025-07-01 10:32:00 +08:00 • committed by GitHub
commit 7c76458b18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,10 +184,12 @@ const VarReferencePicker: FC<Props> = ({
return startNode?.data return startNode?.data
const node = getNodeInfoById(availableNodes, outputVarNodeId)?.data const node = getNodeInfoById(availableNodes, outputVarNodeId)?.data
if (node) {
return { return {
...node, ...node,
id: outputVarNodeId, id: outputVarNodeId,
} }
}
}, [value, hasValue, isConstant, isIterationVar, iterationNode, availableNodes, outputVarNodeId, startNode, isLoopVar, loopNode]) }, [value, hasValue, isConstant, isIterationVar, iterationNode, availableNodes, outputVarNodeId, startNode, isLoopVar, loopNode])
const isShowAPart = (value as ValueSelector).length > 2 const isShowAPart = (value as ValueSelector).length > 2