diff --git a/ui/src/components/MetricBar.tsx b/ui/src/components/MetricBar.tsx index 7de7408d..4e6dde65 100644 --- a/ui/src/components/MetricBar.tsx +++ b/ui/src/components/MetricBar.tsx @@ -1,6 +1,6 @@ import React, { Component } from "react"; -import { Card, Empty } from "antd"; +import { Card } from "antd"; import { TimeUnit } from "chart.js"; import { Bar } from "react-chartjs-2"; @@ -15,10 +15,6 @@ interface IProps { class MetricBar extends Component { render() { - if (this.props.metric.getTimestampsList().length === 0 || this.props.metric.getDatasetsList().length === 0) { - return ; - } - let unit: TimeUnit = "hour"; if (this.props.aggregation === Aggregation.DAY) { unit = "day"; diff --git a/ui/src/components/MetricChart.tsx b/ui/src/components/MetricChart.tsx index 822baeff..e8172a6b 100644 --- a/ui/src/components/MetricChart.tsx +++ b/ui/src/components/MetricChart.tsx @@ -1,6 +1,6 @@ import React, { Component } from "react"; -import { Card, Empty } from "antd"; +import { Card } from "antd"; import { TimeUnit } from "chart.js"; import { Line } from "react-chartjs-2"; @@ -16,10 +16,6 @@ interface IProps { class MetricChart extends Component { render() { - if (this.props.metric.getTimestampsList().length === 0 || this.props.metric.getDatasetsList().length === 0) { - return ; - } - let unit: TimeUnit = "hour"; if (this.props.aggregation === Aggregation.DAY) { unit = "day"; diff --git a/ui/src/components/MetricHeatmap.tsx b/ui/src/components/MetricHeatmap.tsx index 7138c431..77867b10 100644 --- a/ui/src/components/MetricHeatmap.tsx +++ b/ui/src/components/MetricHeatmap.tsx @@ -1,6 +1,6 @@ import React, { Component } from "react"; -import { Card, Empty } from "antd"; +import { Card } from "antd"; import { color } from "chart.js/helpers"; import { TimeUnit } from "chart.js"; @@ -18,10 +18,6 @@ interface IProps { class MetricHeatmap extends Component { render() { - if (this.props.metric.getTimestampsList().length === 0 || this.props.metric.getDatasetsList().length === 0) { - return ; - } - let unit: TimeUnit = "hour"; if (this.props.aggregation === Aggregation.DAY) { unit = "day";