diff --git a/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/VariableInput.tsx b/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/VariableInput.tsx index 7d52fc992..b8effaacc 100644 --- a/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/VariableInput.tsx +++ b/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/VariableInput.tsx @@ -29,7 +29,11 @@ export const VariableInputItem = ({ item: VariableItemType; variablesForm: UseFormReturn; }) => { - const { register, control, setValue } = variablesForm; + const { + control, + setValue, + formState: { errors } + } = variablesForm; return ( @@ -49,37 +53,31 @@ export const VariableInputItem = ({ )} {item.description && } - {item.type === VariableInputEnum.input && ( - - )} - {item.type === VariableInputEnum.textarea && ( -