Handle empty title gracefully
@@ -309,7 +309,8 @@ class RunsLinePlotPanel extends React.Component {
(line.mark = i < 5 ? 'solid' : i < 10 ? 'dashed' : 'dotted')
);
- let title = yAxis;
+ let title = '';
+ if (yAxis) {
if (Query.strategy(this.props.panelQuery) === 'merge') {
let querySummary = Query.summaryString(this.props.panelQuery);
@@ -318,6 +319,11 @@ class RunsLinePlotPanel extends React.Component {
} else {
title = yAxis + ' (' + querySummary + ')';
}
+ } else {
+ title = yAxis;
+ }
+ } else {
+ title = '';
}
return (
