From 5b2c0e970f9cde47535fefa61f15c5787eb2eb2d Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 27 Feb 2024 18:59:28 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixes=20layout=20and=20size=20bu?= =?UTF-8?q?ttons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) {