Only show overlay if container is set (#4601)

* Pass width in props

* Only load overlay if container is set
This commit is contained in:
Beto Dealmeida 2018-03-19 11:23:19 -07:00 committed by Maxime Beauchemin
parent 83f8f98ae3
commit ba9379b949
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ class Chart extends React.PureComponent {
!this.props.chartAlert &&
this.props.refreshOverlayVisible &&
!this.props.errorMessage &&
this.container &&
<RefreshChartOverlay
height={this.height()}
width={this.width()}