From 69b1c3714b2a0699cbe736f39b07456ae49e8d8f Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Fri, 26 Jan 2024 15:46:09 -0300 Subject: [PATCH] Update IOInputField and IOFileInput components --- src/frontend/src/components/IOInputField/index.tsx | 2 +- src/frontend/src/components/IOInputs/FileInput/index.tsx | 1 + src/frontend/src/constants/constants.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/components/IOInputField/index.tsx b/src/frontend/src/components/IOInputField/index.tsx index 55e68231e..3fc95d3d4 100644 --- a/src/frontend/src/components/IOInputField/index.tsx +++ b/src/frontend/src/components/IOInputField/index.tsx @@ -18,7 +18,7 @@ export default function IOInputField({ onChange={updateValue} /> ); - case "fileInput": + case "fileLoader": return ; default: diff --git a/src/frontend/src/components/IOInputs/FileInput/index.tsx b/src/frontend/src/components/IOInputs/FileInput/index.tsx index 5bfbd1eca..324169342 100644 --- a/src/frontend/src/components/IOInputs/FileInput/index.tsx +++ b/src/frontend/src/components/IOInputs/FileInput/index.tsx @@ -3,5 +3,6 @@ import { IOFileInputProps } from "../../../types/components"; export default function IOFileInput({ field, updateValue }: IOFileInputProps) { //component to handle file upload from chatIO function handleCLick() {} + return
; } diff --git a/src/frontend/src/constants/constants.ts b/src/frontend/src/constants/constants.ts index 50fa50067..4d9ba0451 100644 --- a/src/frontend/src/constants/constants.ts +++ b/src/frontend/src/constants/constants.ts @@ -678,5 +678,5 @@ export const LANGFLOW_SUPPORTED_TYPES = new Set([ export const priorityFields = new Set(["code", "template"]); -export const INPUT_TYPES = new Set(["ChatInput", "TextInput"]); +export const INPUT_TYPES = new Set(["ChatInput", "TextInput", "FileLoader"]); export const OUTPUT_TYPES = new Set(["ChatOutput"]);