From 8a2d04b305c651062d2a22633f25827643578364 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 29 Mar 2024 18:32:49 +0800 Subject: [PATCH] chore: llm editor bg and not flash --- .../workflow/nodes/_base/components/prompt/editor.tsx | 4 ++-- .../workflow/nodes/http/components/edit-body/index.tsx | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx b/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx index 497b62fb7d..e5e10f724b 100644 --- a/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx +++ b/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx @@ -77,8 +77,8 @@ const Editor: FC = ({ return (
-
-
+
+
{title}
diff --git a/web/app/components/workflow/nodes/http/components/edit-body/index.tsx b/web/app/components/workflow/nodes/http/components/edit-body/index.tsx index 34753218b4..daeac6e28f 100644 --- a/web/app/components/workflow/nodes/http/components/edit-body/index.tsx +++ b/web/app/components/workflow/nodes/http/components/edit-body/index.tsx @@ -64,8 +64,6 @@ const EditBody: FC = ({ list: body, setList: setBody, addItem: addBody, - isKeyValueEdit: isBodyKeyValueEdit, - toggleIsKeyValueEdit: toggleIsBodyKeyValueEdit, } = useKeyValueList(payload.data, (value) => { const newBody = produce(payload, (draft: Body) => { draft.data = value @@ -151,6 +149,7 @@ const EditBody: FC = ({ onChange={handleBodyValueChange} justVar nodesOutputVars={availableVarList} + readOnly={readonly} /> )}