diff --git a/frontend/app/components/Dashboard/components/MetricsList/ListView.tsx b/frontend/app/components/Dashboard/components/MetricsList/ListView.tsx index dac0e2972..2c97e3657 100644 --- a/frontend/app/components/Dashboard/components/MetricsList/ListView.tsx +++ b/frontend/app/components/Dashboard/components/MetricsList/ListView.tsx @@ -116,8 +116,6 @@ const ListView: React.FC = ({ if (disableSelection) { const path = withSiteId(`/metrics/${metric.metricId}`, siteId); history.push(path); - } else { - toggleSelection?.(metric.metricId); } }; diff --git a/frontend/app/mstore/dashboardStore.ts b/frontend/app/mstore/dashboardStore.ts index c337ac75c..317700dce 100644 --- a/frontend/app/mstore/dashboardStore.ts +++ b/frontend/app/mstore/dashboardStore.ts @@ -457,7 +457,7 @@ export default class DashboardStore { this.isSaving = true; try { try { - const response = await dashboardService.addWidget(dashboard, metricIds); + await dashboardService.addWidget(dashboard, metricIds); toast.success('Card added to dashboard.'); } catch { toast.error('Card could not be added.');