File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
dash-renderer/src/actions Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -539,14 +539,16 @@ function inputsToDict(inputs_list) {
539
539
if ( Array . isArray ( inputs_list [ i ] ) ) {
540
540
const inputsi = inputs_list [ i ] ;
541
541
for ( let ii = 0 ; ii < inputsi . length ; ii ++ ) {
542
- const id_str = `${ JSON . stringify ( inputsi [ ii ] . id ) } .${
542
+ const id_str = `${ stringifyId ( inputsi [ ii ] . id ) } .${
543
543
inputsi [ ii ] . property
544
544
} `;
545
- inputs [ id_str ] = inputsi [ ii ] . value ? inputsi [ ii ] . value : null ;
545
+ inputs [ id_str ] = inputsi [ ii ] . value ?? null ;
546
546
}
547
547
} else {
548
- const id_str = `${ inputs_list [ i ] . id } .${ inputs_list [ i ] . property } ` ;
549
- inputs [ id_str ] = inputs_list [ i ] . value ? inputs_list [ i ] . value : null ;
548
+ const id_str = `${ stringifyId ( inputs_list [ i ] . id ) } .${
549
+ inputs_list [ i ] . property
550
+ } `;
551
+ inputs [ id_str ] = inputs_list [ i ] . value ?? null ;
550
552
}
551
553
}
552
554
return inputs ;
You can’t perform that action at this time.
0 commit comments