diff --git a/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx b/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx index fdf5dece7c..7c36b10188 100644 --- a/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx +++ b/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx @@ -34,7 +34,7 @@ const ReadonlyInputWithSelectVar: FC = ({ const html: JSX.Element[] = strWithVarPlaceholder.split(VAR_PLACEHOLDER).map((str, index) => { if (!vars[index]) - return {str} + return {str} const value = vars[index].split('.') const isSystem = isSystemVar(value) @@ -64,7 +64,7 @@ const ReadonlyInputWithSelectVar: FC = ({ return type } })() - return (<> + return ( {str}
@@ -83,7 +83,7 @@ const ReadonlyInputWithSelectVar: FC = ({
{type}
- ) +
) }) return html })() diff --git a/web/app/components/workflow/nodes/http/hooks/use-key-value-list.ts b/web/app/components/workflow/nodes/http/hooks/use-key-value-list.ts index db4757fb65..55ee490474 100644 --- a/web/app/components/workflow/nodes/http/hooks/use-key-value-list.ts +++ b/web/app/components/workflow/nodes/http/hooks/use-key-value-list.ts @@ -47,7 +47,7 @@ const useKeyValueList = (value: string, onChange: (value: string) => void, noFil }] = useBoolean(true) return { - list: list.length === 0 ? [{ key: '', value: '' }] : list, // no item can not add new item + list: list.length === 0 ? [{ id: uniqueId(UNIQUE_ID_PREFIX), key: '', value: '' }] : list, // no item can not add new item setList, addItem, isKeyValueEdit,