From 1dab486cf93b6a82c1a97dcb2250e803cbe6a2de Mon Sep 17 00:00:00 2001 From: sylenien Date: Wed, 14 Sep 2022 12:38:39 +0200 Subject: [PATCH] fix(ui): fix unused code --- .../components/DashboardView/DashboardView.tsx | 13 ------------- tracker/tracker/src/main/index.ts | 2 -- 2 files changed, 15 deletions(-) diff --git a/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx b/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx index 9989dbf55..aa7e3fe63 100644 --- a/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx +++ b/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx @@ -18,7 +18,6 @@ import SelectDateRange from 'Shared/SelectDateRange'; import { Tooltip } from 'react-tippy'; import Breadcrumb from 'Shared/Breadcrumb'; import AddMetricContainer from '../DashboardWidgetGrid/AddMetricContainer'; -import AddPredefinedMetric from '../DashboardWidgetGrid/AddPredefinedMetric'; import OutsideClickDetectingDiv from 'Shared/OutsideClickDetectingDiv'; interface IProps { @@ -100,18 +99,6 @@ function DashboardView(props: Props) { } }; - const onAddPredefinedMetrics = () => { - dashboardStore.initDashboard(dashboardStore.selectedDashboard); - showModal( - , - { right: true } - ); - }; - if (!dashboard) return null; return ( diff --git a/tracker/tracker/src/main/index.ts b/tracker/tracker/src/main/index.ts index 287fa00e2..0a5bc1357 100644 --- a/tracker/tracker/src/main/index.ts +++ b/tracker/tracker/src/main/index.ts @@ -288,5 +288,3 @@ export default class API { } } } -// @ts-ignore -window.__OPENREPLAY_API__ = API