Add metrics check for chart view
@@ -417,7 +417,7 @@ export default class ChartView extends React.Component<Props, {}> {
return (
<div className="row">
- {this.props.view.charts.length > 0
+ {(this.props.metrics.length > 0 &&this.props.view.charts.length > 0)
? this.props.view.charts.map((chart, idx) => getChart(chart, idx))
: Empty(
'chart',
