🐛 fix(parameterComponent): fix issue with undefined values in DictComponent and KeypairListComponent
This commit is contained in:
parent
1c1d6d2c02
commit
83e48f0728
1 changed files with 2 additions and 3 deletions
|
|
@ -375,11 +375,10 @@ export default function ParameterComponent({
|
||||||
<DictComponent
|
<DictComponent
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
editNode={false}
|
editNode={false}
|
||||||
value={obj}
|
value={data.node!.template[name].value ?? obj}
|
||||||
onChange={(newValue) => {
|
onChange={(newValue) => {
|
||||||
setObj(newValue);
|
setObj(newValue);
|
||||||
data.node!.template[name].value = newValue;
|
data.node!.template[name].value = newValue;
|
||||||
console.log(data);
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -388,7 +387,7 @@ export default function ParameterComponent({
|
||||||
<KeypairListComponent
|
<KeypairListComponent
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
editNode={false}
|
editNode={false}
|
||||||
value={dictArr}
|
value={data.node!.template[name].value ?? dict}
|
||||||
duplicateKey={errorDuplicateKey}
|
duplicateKey={errorDuplicateKey}
|
||||||
onChange={(newValue: string[]) => {
|
onChange={(newValue: string[]) => {
|
||||||
setErrorDuplicateKey(hasDuplicateKeys(newValue));
|
setErrorDuplicateKey(hasDuplicateKeys(newValue));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue