diff --git a/frontend/app/components/Dashboard/components/MetricsList/GridView.tsx b/frontend/app/components/Dashboard/components/MetricsList/GridView.tsx index df84fbb6e..052dd6ec3 100644 --- a/frontend/app/components/Dashboard/components/MetricsList/GridView.tsx +++ b/frontend/app/components/Dashboard/components/MetricsList/GridView.tsx @@ -22,15 +22,6 @@ function GridView(props: Props) { isWidget={metric.metricType === 'predefined'} onClick={() => toggleSelection(parseInt(metric.metricId))} /> - {/* { - e.stopPropagation(); - toggleSelection(parseInt(metric.metricId)); - }} - /> */} ))} diff --git a/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx b/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx index ac14b68db..db0525aab 100644 --- a/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx +++ b/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx @@ -135,8 +135,8 @@ function WidgetForm(props: Props) { return (
-
+ Card showing diff --git a/frontend/app/components/Dashboard/components/WidgetForm/components/MetricTypeDropdown/MetricTypeDropdown.tsx b/frontend/app/components/Dashboard/components/WidgetForm/components/MetricTypeDropdown/MetricTypeDropdown.tsx index 9623df971..ac47765b8 100644 --- a/frontend/app/components/Dashboard/components/WidgetForm/components/MetricTypeDropdown/MetricTypeDropdown.tsx +++ b/frontend/app/components/Dashboard/components/WidgetForm/components/MetricTypeDropdown/MetricTypeDropdown.tsx @@ -7,7 +7,7 @@ import CustomDropdownOption from 'Shared/CustomDropdownOption'; import { observer } from 'mobx-react-lite'; import { useStore } from 'App/mstore'; import withLocationHandlers from 'HOCs/withLocationHandlers'; - +import { Icon } from 'UI'; interface Options { label: string; icon: string; @@ -33,16 +33,16 @@ function MetricTypeDropdown(props: Props) { }, []); React.useEffect(() => { - const queryCardType = props.query.get('type') + const queryCardType = props.query.get('type'); if (queryCardType && options.length > 0 && metric.metricType) { - const type = options.find((i) => i.value === queryCardType) - setTimeout(() => onChange(type.value), 0) + const type = options.find((i) => i.value === queryCardType); + setTimeout(() => onChange(type.value), 0); } - }, []) + }, []); const onChange = (type: string) => { - metricStore.changeType(type) - } + metricStore.changeType(type); + }; return (