File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
dash/dash-renderer/src/actions Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -343,18 +343,16 @@ function sideUpdate(outputs: any, dispatch: any) {
343
343
let componentId , propName ;
344
344
if ( id . includes ( '.' ) ) {
345
345
[ componentId , propName ] = id . split ( '.' ) ;
346
- if ( componentId . startsWith ( '{' ) ) {
347
- componentId = JSON . parse ( componentId ) ;
348
- }
349
- dispatch ( updateComponent ( componentId , { [ propName ] : value } ) ) ;
350
346
} else {
351
- if ( id . startsWith ( '{' ) ) {
352
- componentId = JSON . parse ( id ) ;
353
- } else {
354
- componentId = id ;
355
- }
356
- dispatch ( updateComponent ( componentId , value ) ) ;
347
+ componentId = id ;
348
+ }
349
+
350
+ if ( componentId . startsWith ( '{' ) ) {
351
+ componentId = JSON . parse ( componentId ) ;
357
352
}
353
+
354
+ const props = propName ? { [ propName ] : value } : value ;
355
+ dispatch ( updateComponent ( componentId , props ) ) ;
358
356
} ) ;
359
357
}
360
358
You can’t perform that action at this time.
0 commit comments