From a6c9e0535f4eeeb5fc8a41623ab8f4f9bdaa37dd Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Fri, 14 Jun 2024 17:47:05 -0300 Subject: [PATCH] refactor: Update IOFieldView to use 'text' instead of 'result' for textOutputValue --- .../src/modals/IOModal/components/IOFieldView/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/modals/IOModal/components/IOFieldView/index.tsx b/src/frontend/src/modals/IOModal/components/IOFieldView/index.tsx index 491aaf8a6..4fc2ba941 100644 --- a/src/frontend/src/modals/IOModal/components/IOFieldView/index.tsx +++ b/src/frontend/src/modals/IOModal/components/IOFieldView/index.tsx @@ -47,7 +47,7 @@ export default function IOFieldView({ const textOutputValue = (flowPool[node!.id] ?? [])[(flowPool[node!.id]?.length ?? 1) - 1]?.data - .results.result ?? ""; + .results.text ?? ""; function handleOutputType() { if (!node) return <>"No node found!"; @@ -253,7 +253,7 @@ export default function IOFieldView({ rows={ Array.isArray(flowPoolNode?.data?.artifacts) ? flowPoolNode?.data?.artifacts?.map( - (artifact) => artifact.data + (artifact) => artifact.data, ) ?? [] : [flowPoolNode?.data?.artifacts] }