Use number instead of null

pull/10616/head
Alex P 2018-06-27 16:23:08 -07:00
parent de215570d2
commit 827b944162
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ interface Props {
}
interface State {
staticLegendHeight: null | number
staticLegendHeight: number
xAxisRange: [number, number]
}
@ -102,7 +102,7 @@ class Dygraph extends Component<Props, State> {
constructor(props: Props) {
super(props)
this.state = {
staticLegendHeight: null,
staticLegendHeight: 0,
xAxisRange: [0, 0],
}