Skip to content

Commit 533af1f

Browse files
committed
fix layout callbacks
1 parent 00eb045 commit 533af1f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dash/dash-renderer/src/actions/dependencies.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,9 @@ export function validateCallbacksToLayout(state_, dispatchError) {
572572
const fcb = flatten(values(idProps));
573573
const optional = all(
574574
({allow_optional}) => allow_optional,
575-
flatten(fcb.map(cb => concat(cb.outputs, cb.inputs))).filter(
576-
dep => dep.id === id
577-
)
575+
flatten(
576+
fcb.map(cb => concat(cb.outputs, cb.inputs, cb.states))
577+
).filter(dep => dep.id === id)
578578
);
579579
if (optional) {
580580
continue;

dash/dash-renderer/src/actions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function triggerDefaultState(dispatch, getState) {
8989

9090
dispatch(
9191
addRequestedCallbacks(
92-
getLayoutCallbacks(graphs, paths, layout, {
92+
getLayoutCallbacks(graphs, paths, layout.components, {
9393
outputsOnly: true
9494
})
9595
)

0 commit comments

Comments
 (0)