ui: fix double metric selection in list
This commit is contained in:
parent
1fe83a3eac
commit
13e83fa774
2 changed files with 1 additions and 3 deletions
|
|
@ -116,8 +116,6 @@ const ListView: React.FC<Props> = ({
|
|||
if (disableSelection) {
|
||||
const path = withSiteId(`/metrics/${metric.metricId}`, siteId);
|
||||
history.push(path);
|
||||
} else {
|
||||
toggleSelection?.(metric.metricId);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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.');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue