refactor: Update IOFieldView to use 'text' instead of 'result' for textOutputValue
This commit is contained in:
parent
e8d673debf
commit
a6c9e0535f
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue