diff --git a/src/frontend/src/customNodes/genericNode/components/outputModal/components/switchOutputView/index.tsx b/src/frontend/src/customNodes/genericNode/components/outputModal/components/switchOutputView/index.tsx index ee09a9983..14c01b2b0 100644 --- a/src/frontend/src/customNodes/genericNode/components/outputModal/components/switchOutputView/index.tsx +++ b/src/frontend/src/customNodes/genericNode/components/outputModal/components/switchOutputView/index.tsx @@ -27,7 +27,7 @@ export default function SwitchOutputView(nodeId): JSX.Element { - + diff --git a/src/frontend/src/modals/IOModal/components/IOFieldView/index.tsx b/src/frontend/src/modals/IOModal/components/IOFieldView/index.tsx index 9d955336d..d0463e041 100644 --- a/src/frontend/src/modals/IOModal/components/IOFieldView/index.tsx +++ b/src/frontend/src/modals/IOModal/components/IOFieldView/index.tsx @@ -45,6 +45,10 @@ export default function IOFieldView({ const [errorDuplicateKey, setErrorDuplicateKey] = useState(false); + const textOutputValue = + (flowPool[node!.id] ?? [])[(flowPool[node!.id]?.length ?? 1) - 1]?.data + .results.result ?? ""; + function handleOutputType() { if (!node) return <>"No node found!"; switch (type) { @@ -158,7 +162,12 @@ export default function IOFieldView({ switch (fieldType) { case "TextOutput": return ( - + ); case "PDFOutput": return left ? ( diff --git a/src/frontend/src/shared/components/textOutputView/index.tsx b/src/frontend/src/shared/components/textOutputView/index.tsx index 5f3aacb37..38d0ca498 100644 --- a/src/frontend/src/shared/components/textOutputView/index.tsx +++ b/src/frontend/src/shared/components/textOutputView/index.tsx @@ -1,6 +1,6 @@ import { Textarea } from "../../../components/ui/textarea"; -const TextOutputView = ({ left, node, flowPool }) => { +const TextOutputView = ({ left, node, flowPool, value }) => { return ( <>