From 7aaa4b241ee50baa53f854e46b63600fac48c70a Mon Sep 17 00:00:00 2001 From: Brendan O'Handley Date: Thu, 26 Sep 2024 08:34:28 -0500 Subject: [PATCH] Explore metrics: Fix warning message for limiting metrics (#93817) don't show undefined error --- public/app/features/trails/MetricSelect/MetricSelectScene.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/app/features/trails/MetricSelect/MetricSelectScene.tsx b/public/app/features/trails/MetricSelect/MetricSelectScene.tsx index f6a5001689e..1a28aac9146 100644 --- a/public/app/features/trails/MetricSelect/MetricSelectScene.tsx +++ b/public/app/features/trails/MetricSelect/MetricSelectScene.tsx @@ -287,8 +287,7 @@ export class MetricSelectScene extends SceneObjectBase i } if (missingOtelTargets) { - metricNamesWarning += - 'The list of metrics is not complete. Select more OTel resource attributes to see a full list of metrics.'; + metricNamesWarning = `${metricNamesWarning ?? ''} The list of metrics is not complete. Select more OTel resource attributes to see a full list of metrics.`; } let bodyLayout = this.state.body;