1
0
mirror of https://github.com/Lissy93/dashy.git synced 2025-04-08 17:06:18 +02:00

🙈 Perform deep copy of config, to reset pointers

This commit is contained in:
Alicia Sykes 2021-10-18 23:18:26 +01:00
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);
},
},