diff --git a/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx b/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx index bfe8f428da..2bdeb7842c 100644 --- a/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx +++ b/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx @@ -62,10 +62,7 @@ const FormContentPreview: FC = ({ } const placeholder = input.placeholder return ( - + ) })(), }} diff --git a/web/app/components/workflow/nodes/human-input/components/variable-in-markdown.tsx b/web/app/components/workflow/nodes/human-input/components/variable-in-markdown.tsx index 3fa912e1a3..4b43326fe4 100644 --- a/web/app/components/workflow/nodes/human-input/components/variable-in-markdown.tsx +++ b/web/app/components/workflow/nodes/human-input/components/variable-in-markdown.tsx @@ -123,14 +123,11 @@ export const Variable: React.FC<{ path: string }> = ({ path }) => { ) } -export const Note: React.FC<{ placeholder: FormInputItemPlaceholder, title: string }> = ({ placeholder, title }) => { +export const Note: React.FC<{ placeholder: FormInputItemPlaceholder }> = ({ placeholder }) => { const isVariable = placeholder.type === 'variable' return ( - <> -

{title}

-
- {isVariable ? : {placeholder.value}} -
- +
+ {isVariable ? : {placeholder.value}} +
) }