Skip to content

Commit

Permalink
[testing]: remove any effect of ADD_HTTP_HEADERS
Browse files Browse the repository at this point in the history
  • Loading branch information
yujin-wu committed Aug 31, 2021
1 parent f6f8000 commit f79665c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dash/dash-renderer/src/reducers/config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import {getAction} from '../actions/constants';
import {mergeDeepRight} from 'ramda';

export default function config(state = null, action) {
if (action.type === getAction('SET_CONFIG')) {
return action.payload;
} else if (action.type === getAction('ADD_HTTP_HEADERS')) {
return mergeDeepRight(state, {
fetch: {
headers: action.payload
}
});
// return mergeDeepRight(state, {
// fetch: {
// headers: action.payload
// }
// });
return state;
}
return state;
}

0 comments on commit f79665c

Please sign in to comment.