diff --git a/ui/src/shared/components/Dygraph.js b/ui/src/shared/components/Dygraph.js index 4d8255cd70..af086268c4 100644 --- a/ui/src/shared/components/Dygraph.js +++ b/ui/src/shared/components/Dygraph.js @@ -36,6 +36,7 @@ class Dygraph extends Component { super(props) this.state = { staticLegendHeight: null, + isMounted: false, } } @@ -92,6 +93,7 @@ class Dygraph extends Component { const {w} = this.dygraph.getArea() this.props.setResolution(w) + this.setState({isMounted: true}) } componentWillUnmount() {