diff --git a/src/store.js b/src/store.js index 5c6adc1f..0efe467c 100644 --- a/src/store.js +++ b/src/store.js @@ -81,8 +81,8 @@ const store = new Vuex.Store({ actions: { /* Called when app first loaded. Reads config and sets state */ [INITIALIZE_CONFIG]({ commit }) { - const Accumulator = new ConfigAccumulator(); - const config = Accumulator.config(); + const deepCopy = (json) => JSON.parse(JSON.stringify(json)); + const config = deepCopy(new ConfigAccumulator().config()); commit(UPDATE_CONFIG, config); }, },