🐛 fix(parameterComponent): fix nullish coalescing operator usage to prevent potential error when accessing nested object properties
This commit is contained in:
parent
dd556c518d
commit
a6751d4a17
1 changed files with 4 additions and 1 deletions
|
|
@ -383,7 +383,10 @@ export default function ParameterComponent({
|
||||||
<KeypairListComponent
|
<KeypairListComponent
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
editNode={false}
|
editNode={false}
|
||||||
value={data.node!.template[name].value ?? convertObjToArray(dict)}
|
value={
|
||||||
|
convertObjToArray(data.node!.template[name].value) ??
|
||||||
|
convertObjToArray(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