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;