Skip to content

Commit 5b2c0e9

Browse files
committed
🐛 Fixes layout and size buttons
1 parent 97a75b3 commit 5b2c0e9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/store.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,15 @@ const store = new Vuex.Store({
292292
InfoHandler('Color palette updated', InfoKeys.VISUAL);
293293
},
294294
[SET_ITEM_LAYOUT](state, layout) {
295-
state.config.appConfig.layout = layout;
295+
const newConfig = { ...state.config };
296+
newConfig.appConfig.layout = layout;
297+
state.config = newConfig;
296298
InfoHandler('Layout updated', InfoKeys.VISUAL);
297299
},
298300
[SET_ITEM_SIZE](state, iconSize) {
299-
state.config.appConfig.iconSize = iconSize;
301+
const newConfig = { ...state.config };
302+
newConfig.appConfig.iconSize = iconSize;
303+
state.config = newConfig;
300304
InfoHandler('Item size updated', InfoKeys.VISUAL);
301305
},
302306
[UPDATE_CUSTOM_CSS](state, customCss) {

0 commit comments

Comments
 (0)