Skip to content

Commit 8afe6e9

Browse files
committed
remove default triggered value
1 parent 0d3e0f6 commit 8afe6e9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

dash-renderer/src/actions/index.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -576,13 +576,10 @@ function handleClientside(clientside_function, payload) {
576576
// setup callback context
577577
const input_dict = inputsToDict(inputs);
578578
dc.callback_context = {};
579-
if (payload.changedPropIds.length === 0) {
580-
dc.callback_context.triggered = [{prop_id: '.', value: null}];
581-
} else {
582-
dc.callback_context.triggered = payload.changedPropIds.map(
583-
prop_id => ({prop_id: prop_id, value: input_dict[prop_id]})
584-
);
585-
}
579+
dc.callback_context.triggered = payload.changedPropIds.map(prop_id => ({
580+
prop_id: prop_id,
581+
value: input_dict[prop_id],
582+
}));
586583
dc.callback_context.inputs_list = inputs;
587584
dc.callback_context.inputs = input_dict;
588585
dc.callback_context.states_list = state;

0 commit comments

Comments
 (0)