fix(ui/dygraph): add guard for dygraph (#12828)

pull/12835/head
Delmer 2019-03-22 10:13:35 -04:00 committed by GitHub
parent d75aaaf90b
commit 845eb38253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class Dygraph extends Component<Props, State> {
{legendData && (
<Legend {...legendData} seriesDescriptions={seriesDescriptions} />
)}
{!!hoverTime && (
{!!hoverTime && !!this.dygraph && (
<HoverTimeMarker x={this.dygraph.toDomXCoord(hoverTime)} />
)}
{this.nestedGraph}