From 02cacd773efc2aa343492bce0678b7dbdbe0d3fe Mon Sep 17 00:00:00 2001 From: Viktor Avelino <64113566+viktoravelino@users.noreply.github.com> Date: Thu, 8 Jan 2026 09:42:51 -0500 Subject: [PATCH] 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> --- .../GenericNode/components/NodeOutputfield/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx index d1ed73f9b7..a3f84fbc6e 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx @@ -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, ], );