🐛 fix(parameterComponent): change default key-value pair in case of empty value to improve clarity
🐛 fix(keypairListComponent): update placeholder text to improve user guidance
This commit is contained in:
parent
e528b1363e
commit
fe92ce85f9
2 changed files with 2 additions and 2 deletions
|
|
@ -398,7 +398,7 @@ export default function ParameterComponent({
|
||||||
value={
|
value={
|
||||||
data.node!.template[name].value?.length === 0 ||
|
data.node!.template[name].value?.length === 0 ||
|
||||||
!data.node!.template[name].value
|
!data.node!.template[name].value
|
||||||
? [{ yourKey: "yourValue" }]
|
? [{ "": "" }]
|
||||||
: convertObjToArray(data.node!.template[name].value)
|
: convertObjToArray(data.node!.template[name].value)
|
||||||
}
|
}
|
||||||
duplicateKey={errorDuplicateKey}
|
duplicateKey={errorDuplicateKey}
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ export default function KeypairListComponent({
|
||||||
type="text"
|
type="text"
|
||||||
value={obj[key]}
|
value={obj[key]}
|
||||||
className={editNode ? "input-edit-node" : ""}
|
className={editNode ? "input-edit-node" : ""}
|
||||||
placeholder="Click to input a value..."
|
placeholder="Type a value..."
|
||||||
onChange={(event) =>
|
onChange={(event) =>
|
||||||
handleChangeValue(event.target.value, index)
|
handleChangeValue(event.target.value, index)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue