Skip to content

Commit

Permalink
fix(FEC-8462): Thumbnail scrubber preview is overridden when multiple…
Browse files Browse the repository at this point in the history
… players are loaded simultaneously (#275)

DON'T MESS THE GLOBAL STATE OBJECT!!!
  • Loading branch information
Dan Ziv committed Sep 26, 2018
1 parent 452c69f commit 987a280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reducers/config.js
Expand Up @@ -20,7 +20,7 @@ export const initialState = {
export default (state: Object = initialState, action: Object) => {
switch (action.type) {
case types.UPDATE: {
const config = mergeDeep(state, action.config);
const config = mergeDeep({}, state, action.config);
return {
...state,
...config
Expand All @@ -31,7 +31,7 @@ export default (state: Object = initialState, action: Object) => {
...state,
components: {
...state.components,
[action.componentAlias]: mergeDeep(state.components[action.componentAlias], action.config)
[action.componentAlias]: mergeDeep({}, state.components[action.componentAlias], action.config)
}
};
}
Expand Down

0 comments on commit 987a280

Please sign in to comment.