From 6a4eada85b9455d3725f465332d15d671d0177f3 Mon Sep 17 00:00:00 2001 From: heheer Date: Wed, 19 Mar 2025 21:42:29 +0800 Subject: [PATCH] fix variable sync & popover button height (#4227) * fix variable sync & popover button height * required --- .../ChatBox/components/VariableInput.tsx | 105 +++++++++--------- .../ChatBox/components/VariablePopover.tsx | 2 +- 2 files changed, 56 insertions(+), 51 deletions(-) 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 && ( -