diff --git a/web/src/store/index.ts b/web/src/store/index.ts index fb18638..caa51fc 100644 --- a/web/src/store/index.ts +++ b/web/src/store/index.ts @@ -55,6 +55,7 @@ export const store = createStore({ state.Session = restoredState.Session; state.CurrentBudgetID = restoredState.CurrentBudgetID; state.ShowMenu = restoredState.ShowMenu; + state.ExpandMenu = restoredState.ExpandMenu; for (const budget of restoredState.Budgets || []) { state.Budgets.set(budget[0], budget[1]); @@ -176,6 +177,7 @@ store.subscribe((mutation, state) => { // Accounts: [...state.Accounts], CurrentBudgetID: state.CurrentBudgetID, //CurrentAccountID: state.CurrentAccountID, + ExpandMenu: state.ExpandMenu, ShowMenu: state.ShowMenu } localStorage.setItem("store", JSON.stringify(persistedState));