mirror of
https://github.com/BrenBroZAYT/dashy.git
synced 2026-06-14 00:49:58 +00:00
🙈 Perform deep copy of config, to reset pointers
This commit is contained in:
+2
-2
@@ -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);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user