diff --git a/ui/src/shared/components/Dygraph.tsx b/ui/src/shared/components/Dygraph.tsx index 9816a28869..31d53d46cd 100644 --- a/ui/src/shared/components/Dygraph.tsx +++ b/ui/src/shared/components/Dygraph.tsx @@ -67,7 +67,7 @@ interface Props { } interface State { - staticLegendHeight: null | number + staticLegendHeight: number xAxisRange: [number, number] } @@ -102,7 +102,7 @@ class Dygraph extends Component { constructor(props: Props) { super(props) this.state = { - staticLegendHeight: null, + staticLegendHeight: 0, xAxisRange: [0, 0], }