Explore metrics: Fix warning message for limiting metrics (#93817)

don't show undefined error
This commit is contained in:
Brendan O'Handley
2024-09-26 14:34:28 +01:00
committed by GitHub
parent 570c5934d3
commit 7aaa4b241e
@@ -287,8 +287,7 @@ export class MetricSelectScene extends SceneObjectBase<MetricSelectSceneState> 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;