Skip to content

Commit d541e37

Browse files
committed
adjustments for outputValue===undefined eg (no_update)
1 parent a157deb commit d541e37

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,7 @@ function handleServerside(
623623
}
624624

625625
if (data.sideUpdate) {
626-
setTimeout(() =>
627-
dispatch(sideUpdate(data.sideUpdate, payload))
628-
); // always force side-updates
626+
dispatch(sideUpdate(data.sideUpdate, payload));
629627
}
630628

631629
if (data.progress) {
@@ -913,6 +911,9 @@ export function executeCallback(
913911
const outputPath = getPath(paths, out.id);
914912
const dataPath = [stringifyId(out.id), propName];
915913
const outputValue = path(dataPath, data);
914+
if (outputValue === undefined) {
915+
return;
916+
}
916917
const oldProps =
917918
path(
918919
outputPath.concat(['props']),
@@ -922,6 +923,7 @@ export function executeCallback(
922923
{[propName]: outputValue},
923924
oldProps
924925
);
926+
925927
data = assocPath(
926928
dataPath,
927929
newProps[propName],

0 commit comments

Comments
 (0)