diff --git a/src/store.js b/src/store.js index 76761ecc..1eda8650 100644 --- a/src/store.js +++ b/src/store.js @@ -292,11 +292,15 @@ const store = new Vuex.Store({ InfoHandler('Color palette updated', InfoKeys.VISUAL); }, [SET_ITEM_LAYOUT](state, layout) { - state.config.appConfig.layout = layout; + const newConfig = { ...state.config }; + newConfig.appConfig.layout = layout; + state.config = newConfig; InfoHandler('Layout updated', InfoKeys.VISUAL); }, [SET_ITEM_SIZE](state, iconSize) { - state.config.appConfig.iconSize = iconSize; + const newConfig = { ...state.config }; + newConfig.appConfig.iconSize = iconSize; + state.config = newConfig; InfoHandler('Item size updated', InfoKeys.VISUAL); }, [UPDATE_CUSTOM_CSS](state, customCss) {