mirror of https://github.com/Lissy93/dashy.git
🙈 Perform deep copy of config, to reset pointers
This commit is contained in:
parent
1ed55b42c6
commit
37e49ae240
|
@ -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);
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue