refactor: Update IOFieldView to use 'text' instead of 'result' for textOutputValue

This commit is contained in:
anovazzi1 2024-06-14 17:47:05 -03:00
commit a6c9e0535f

View file

@ -47,7 +47,7 @@ export default function IOFieldView({
const textOutputValue = const textOutputValue =
(flowPool[node!.id] ?? [])[(flowPool[node!.id]?.length ?? 1) - 1]?.data (flowPool[node!.id] ?? [])[(flowPool[node!.id]?.length ?? 1) - 1]?.data
.results.result ?? ""; .results.text ?? "";
function handleOutputType() { function handleOutputType() {
if (!node) return <>"No node found!"</>; if (!node) return <>"No node found!"</>;
@ -253,7 +253,7 @@ export default function IOFieldView({
rows={ rows={
Array.isArray(flowPoolNode?.data?.artifacts) Array.isArray(flowPoolNode?.data?.artifacts)
? flowPoolNode?.data?.artifacts?.map( ? flowPoolNode?.data?.artifacts?.map(
(artifact) => artifact.data (artifact) => artifact.data,
) ?? [] ) ?? []
: [flowPoolNode?.data?.artifacts] : [flowPoolNode?.data?.artifacts]
} }