diff --git a/store/app.js b/store/app.js index 6aa85fa6..65295fd0 100644 --- a/store/app.js +++ b/store/app.js @@ -7,7 +7,7 @@ import { THEME_CONFIG, DEFAULT_WEBSITE_LIMIT, } from 'lib/constants'; -import { getItem } from 'lib/web'; +import { getItem, setItem } from 'lib/web'; export const defaultDashboardConfig = { showCharts: true, @@ -42,6 +42,7 @@ export function setUser(user) { export function setDashboard(dashboard) { store.setState({ dashboard }); + setItem(DASHBOARD_CONFIG, dashboard); } export default store;