diff --git a/client/app/scripts/reducers/root.js b/client/app/scripts/reducers/root.js index c0664259e..5913dfcca 100644 --- a/client/app/scripts/reducers/root.js +++ b/client/app/scripts/reducers/root.js @@ -731,11 +731,9 @@ export function rootReducer(state = initialState, action) { // Bust the webpack require cache to for a re-download of the stylesheets modules.forEach((i) => { const children = require.cache[i] ? require.cache[i].children : []; - if (children) { - children.forEach((c) => { - delete require.cache[c]; - }); - } + children.forEach((c) => { + delete require.cache[c]; + }); delete require.cache[i]; });