We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97a75b3 commit 5b2c0e9Copy full SHA for 5b2c0e9
src/store.js
@@ -292,11 +292,15 @@ const store = new Vuex.Store({
292
InfoHandler('Color palette updated', InfoKeys.VISUAL);
293
},
294
[SET_ITEM_LAYOUT](state, layout) {
295
- state.config.appConfig.layout = layout;
+ const newConfig = { ...state.config };
296
+ newConfig.appConfig.layout = layout;
297
+ state.config = newConfig;
298
InfoHandler('Layout updated', InfoKeys.VISUAL);
299
300
[SET_ITEM_SIZE](state, iconSize) {
- state.config.appConfig.iconSize = iconSize;
301
302
+ newConfig.appConfig.iconSize = iconSize;
303
304
InfoHandler('Item size updated', InfoKeys.VISUAL);
305
306
[UPDATE_CUSTOM_CSS](state, customCss) {
0 commit comments