Skip to content

Commit

Permalink
Set payload.directLine to empty object
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Oct 29, 2019
1 parent b7d73e5 commit 3808ce9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions __tests__/setup/conditions/actionDispatched.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ export default function actionDispatched(predicateOrType) {
// Filter out payload on DIRECT_LINE/CONNECT* because the content is not stringifiable

if (/^DIRECT_LINE\/CONNECT/.test(action.type)) {
return {
...action,
payload: {
...action.payload,
directLine: {}
}
};
action.payload.directLine = {};
}

return action;
Expand Down

0 comments on commit 3808ce9

Please sign in to comment.