mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 06:10:49 +08:00
fix: node output field loop input check to match colors (#11230)
* Fix node output field loop input check to match colors * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -336,7 +336,11 @@ function NodeOutputField({
|
||||
setFilterEdge={setFilterEdge}
|
||||
showNode={showNode}
|
||||
testIdComplement={`${data?.type?.toLowerCase()}-${showNode ? "shownode" : "noshownode"}`}
|
||||
colorName={colorName}
|
||||
colorName={
|
||||
data.node?.outputs?.[index].allows_loop
|
||||
? loopInputColorName
|
||||
: colorName
|
||||
}
|
||||
/>
|
||||
),
|
||||
[
|
||||
@ -350,6 +354,9 @@ function NodeOutputField({
|
||||
showNode,
|
||||
data?.type,
|
||||
colorName,
|
||||
data.node?.outputs?.[index].allows_loop,
|
||||
loopInputColorName,
|
||||
index,
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user