fix: fix node valid detect (#21709)

pull/21732/head
Minamiyama 11 months ago committed by GitHub
parent eb9edf4908
commit 7c76458b18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save