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 08:34:28 -05:00 committed by GitHub
parent 570c5934d3
commit 7aaa4b241e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -287,8 +287,7 @@ export class MetricSelectScene extends SceneObjectBase<MetricSelectSceneState> i
} }
if (missingOtelTargets) { if (missingOtelTargets) {
metricNamesWarning += metricNamesWarning = `${metricNamesWarning ?? ''} The list of metrics is not complete. Select more OTel resource attributes to see a full list of metrics.`;
'The list of metrics is not complete. Select more OTel resource attributes to see a full list of metrics.';
} }
let bodyLayout = this.state.body; let bodyLayout = this.state.body;