fix(ui/dygraph): add guard for dygraph (#12828)
parent
d75aaaf90b
commit
845eb38253
|
@ -165,7 +165,7 @@ class Dygraph extends Component<Props, State> {
|
||||||
{legendData && (
|
{legendData && (
|
||||||
<Legend {...legendData} seriesDescriptions={seriesDescriptions} />
|
<Legend {...legendData} seriesDescriptions={seriesDescriptions} />
|
||||||
)}
|
)}
|
||||||
{!!hoverTime && (
|
{!!hoverTime && !!this.dygraph && (
|
||||||
<HoverTimeMarker x={this.dygraph.toDomXCoord(hoverTime)} />
|
<HoverTimeMarker x={this.dygraph.toDomXCoord(hoverTime)} />
|
||||||
)}
|
)}
|
||||||
{this.nestedGraph}
|
{this.nestedGraph}
|
||||||
|
|
Loading…
Reference in New Issue