From add7bdc8776b05c75f4274fc0e14e64ce31b0678 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 3 Apr 2024 16:46:24 +0800 Subject: [PATCH] fix: add input instance id --- .../components/workflow/nodes/http/components/api-input.tsx | 1 + .../workflow/nodes/http/components/edit-body/index.tsx | 2 ++ .../nodes/http/components/key-value/key-value-edit/index.tsx | 1 + .../http/components/key-value/key-value-edit/input-item.tsx | 4 ++++ .../nodes/http/components/key-value/key-value-edit/item.tsx | 4 ++++ 5 files changed, 12 insertions(+) diff --git a/web/app/components/workflow/nodes/http/components/api-input.tsx b/web/app/components/workflow/nodes/http/components/api-input.tsx index d274f194a4..e75bce58fc 100644 --- a/web/app/components/workflow/nodes/http/components/api-input.tsx +++ b/web/app/components/workflow/nodes/http/components/api-input.tsx @@ -64,6 +64,7 @@ const ApiInput: FC = ({ /> = ({ {type === BodyType.rawText && ( Raw text} onChange={handleBodyValueChange} value={payload.data} @@ -138,6 +139,7 @@ const EditBody: FC = ({ {type === BodyType.json && ( = ({ list.map((item, index) => ( void @@ -21,6 +22,7 @@ type Props = { const InputItem: FC = ({ className, + instanceId, nodeId, value, onChange, @@ -51,6 +53,7 @@ const InputItem: FC = ({ {(!readOnly) ? ( = ({ {!hasValue &&
{placeholder}
} {hasValue && ( = ({ + instanceId, className, nodeId, readonly, @@ -50,6 +52,7 @@ const KeyValueItem: FC = ({
= ({