From fe92ce85f91b4c6e5ce30b1e661d982581b6c076 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Tue, 19 Sep 2023 14:42:49 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(parameterComponent):=20chang?= =?UTF-8?q?e=20default=20key-value=20pair=20in=20case=20of=20empty=20value?= =?UTF-8?q?=20to=20improve=20clarity=20=F0=9F=90=9B=20fix(keypairListCompo?= =?UTF-8?q?nent):=20update=20placeholder=20text=20to=20improve=20user=20gu?= =?UTF-8?q?idance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GenericNode/components/parameterComponent/index.tsx | 2 +- src/frontend/src/components/keypairListComponent/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 9cf84491d..15dd2bb3c 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -398,7 +398,7 @@ export default function ParameterComponent({ value={ data.node!.template[name].value?.length === 0 || !data.node!.template[name].value - ? [{ yourKey: "yourValue" }] + ? [{ "": "" }] : convertObjToArray(data.node!.template[name].value) } duplicateKey={errorDuplicateKey} diff --git a/src/frontend/src/components/keypairListComponent/index.tsx b/src/frontend/src/components/keypairListComponent/index.tsx index 416e2c7b5..e9c016ece 100644 --- a/src/frontend/src/components/keypairListComponent/index.tsx +++ b/src/frontend/src/components/keypairListComponent/index.tsx @@ -70,7 +70,7 @@ export default function KeypairListComponent({ type="text" value={obj[key]} className={editNode ? "input-edit-node" : ""} - placeholder="Click to input a value..." + placeholder="Type a value..." onChange={(event) => handleChangeValue(event.target.value, index) }