Skip to content

Commit 324c85a

Browse files
committed
return Plotly.react
1 parent 05cbf80 commit 324c85a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

components/dash-core-components/src/fragments/Graph.react.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,7 @@ class PlotlyGraph extends Component {
184184
return lazyLoadMathJax(mathjax)
185185
.then(() => {
186186
const gd = this.gd.current;
187-
188-
// double-check gd hasn't been unmounted
189-
if (!gd) {
190-
return;
191-
}
192-
193-
Plotly.react(gd, figureClone);
187+
return gd && Plotly.react(gd, figureClone);
194188
})
195189
.then(() => {
196190
const gd = this.gd.current;

0 commit comments

Comments
 (0)