[APM] Don't hide all legends if user has hidden one (#43667)
Closes #43105.
This commit is contained in:
parent
df518833cd
commit
5cf45dbf56
|
@ -139,8 +139,10 @@ export class InnerCustomPlot extends PureComponent {
|
|||
});
|
||||
const options = this.getOptions(this.props);
|
||||
|
||||
const coordinates = flatten(enabledSeries.map(s => s.data));
|
||||
const noHits = coordinates.every(coord => !isValidCoordinateValue(coord.y));
|
||||
const hasValidCoordinates = flatten(series.map(s => s.data)).some(p =>
|
||||
isValidCoordinateValue(p.y)
|
||||
);
|
||||
const noHits = !hasValidCoordinates;
|
||||
|
||||
const plotValues = this.getPlotValues({
|
||||
visibleSeries,
|
||||
|
|
Loading…
Reference in a new issue