diff --git a/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx b/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx index ab82a1720d..acd154e30a 100644 --- a/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx +++ b/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx @@ -9,6 +9,7 @@ type ContentWrapperProps = { children: React.ReactNode showExpandIcon?: boolean className?: string + expanded?: boolean } const ContentWrapper = ({ @@ -16,8 +17,9 @@ const ContentWrapper = ({ children, showExpandIcon = false, className, + expanded = false, }: ContentWrapperProps) => { - const [isExpanded, setIsExpanded] = useState(false) + const [isExpanded, setIsExpanded] = useState(expanded) const handleToggleExpand = useCallback(() => { setIsExpanded(!isExpanded) diff --git a/web/app/components/workflow/panel/human-input-filled-form-list.tsx b/web/app/components/workflow/panel/human-input-filled-form-list.tsx index 02a03ce2aa..94ce49b962 100644 --- a/web/app/components/workflow/panel/human-input-filled-form-list.tsx +++ b/web/app/components/workflow/panel/human-input-filled-form-list.tsx @@ -32,6 +32,7 @@ const HumanInputFilledFormList = ({ nodeTitle={getHumanInputNodeTitle(formData.node_id)} showExpandIcon className="bg-components-panel-bg" + expanded >