Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fix bug where toggle charts would reset ordering
Chris Walshef4bf8282afd
diff --git a/components/settings/DashboardSettingsButton.js b/components/settings/DashboardSettingsButton.jsindex 8c04aa00e..8bdaf3113 100644--- a/components/settings/DashboardSettingsButton.js+++ b/components/settings/DashboardSettingsButton.js@@ -2,7 +2,7 @@ import React from 'react';import { FormattedMessage } from 'react-intl';import MenuButton from 'components/common/MenuButton';import Gear from 'assets/gear.svg';-import useStore, { setDashboard, defaultDashboardConfig } from 'store/app';+import useStore, { setDashboard } from 'store/app';const selector = state => state.dashboard;@@ -18,7 +18,7 @@ export default function DashboardSettingsButton() {function handleSelect(value) {if (value === 'charts') {- setDashboard({ ...defaultDashboardConfig, showCharts: !settings.showCharts });+ setDashboard({ ...settings, showCharts: !settings.showCharts });}//setDashboard(value);}