From 16dc0c17c77584b22870f774f389fa6b42f33a07 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Wed, 1 Feb 2023 11:34:08 +0100 Subject: [PATCH] fix(ui): dont send try when metric exists and not edited --- .../Dashboard/components/WidgetPreview/WidgetPreview.tsx | 3 ++- .../components/Dashboard/components/WidgetView/WidgetView.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/Dashboard/components/WidgetPreview/WidgetPreview.tsx b/frontend/app/components/Dashboard/components/WidgetPreview/WidgetPreview.tsx index 523dee9c8..6fb1042dc 100644 --- a/frontend/app/components/Dashboard/components/WidgetPreview/WidgetPreview.tsx +++ b/frontend/app/components/Dashboard/components/WidgetPreview/WidgetPreview.tsx @@ -13,6 +13,7 @@ import { CLICKMAP, TABLE, TIMESERIES } from "App/constants/card"; interface Props { className?: string; name: string; + isEditing?: boolean; } function WidgetPreview(props: Props) { const [showDashboardSelectionModal, setShowDashboardSelectionModal] = React.useState(false); @@ -94,7 +95,7 @@ function WidgetPreview(props: Props) {
- +
{ canAddToDashboard && ( diff --git a/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx b/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx index 97aacecdc..debb909cc 100644 --- a/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx +++ b/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx @@ -116,7 +116,7 @@ function WidgetView(props: Props) { {expanded && } - + {widget.metricOf !== FilterKey.SESSIONS && widget.metricOf !== FilterKey.ERRORS && ( <>