Skip to content

Commit dbfb8d8

Browse files
committed
fixing issue with sideUpdates and not passing the getComponentLayout to dispatch adjustments
1 parent f7764d9 commit dbfb8d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dash/dash-renderer/src/actions/callbacks.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,10 @@ function sideUpdate(outputs: SideUpdateOutput, cb: ICallbackPayload) {
421421
const state = getState();
422422

423423
const componentPath = getPath(state.paths, id);
424-
425-
const oldComponent = getComponentLayout(componentPath, state);
424+
let oldComponent = null;
425+
if (componentPath) {
426+
oldComponent = getComponentLayout(componentPath, state)
427+
}
426428

427429
const oldProps = oldComponent?.props || {};
428430

0 commit comments

Comments
 (0)