mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Refactored dashboard sort logic.
This commit is contained in:
parent
42e87a4691
commit
62b032ab19
8 changed files with 32 additions and 40 deletions
|
|
@ -25,11 +25,7 @@ export default function DashboardSettingsButton() {
|
|||
|
||||
function handleSelect(value) {
|
||||
if (value === 'charts') {
|
||||
saveDashboard(state => {
|
||||
const bs = { showCharts: !state.showCharts };
|
||||
console.log('WTF', { state, bs });
|
||||
return bs;
|
||||
});
|
||||
saveDashboard(state => ({ showCharts: !state.showCharts }));
|
||||
}
|
||||
if (value === 'order') {
|
||||
saveDashboard({ editing: true });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue