File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
components/dash-core-components/src/fragments Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,15 @@ class PlotlyGraph extends Component {
150
150
figure = props . _dashprivate_transformFigure ( figure , gd ) ;
151
151
config = props . _dashprivate_transformConfig ( config , gd ) ;
152
152
153
+ const configClone = this . getConfig ( config , responsive ) ;
154
+ // add typesetMath | not exposed to the dash API
155
+ configClone . typesetMath = this . props . mathjax ;
156
+
153
157
const figureClone = {
154
158
data : figure . data ,
155
159
layout : this . getLayout ( figure . layout , responsive ) ,
156
160
frames : figure . frames ,
157
- config : this . getConfig ( config , responsive ) ,
161
+ config : configClone ,
158
162
} ;
159
163
160
164
if (
@@ -174,11 +178,6 @@ class PlotlyGraph extends Component {
174
178
return Plotly . animate ( gd , figureClone , animation_options ) ;
175
179
}
176
180
177
- const layoutClone = this . getLayout ( figure . layout , responsive ) ;
178
- const configClone = this . getConfig ( config , responsive ) ;
179
- // add typesetMath | not exposed to the dash API
180
- configClone . typesetMath = this . props . mathjax ;
181
-
182
181
gd . classList . add ( 'dash-graph--pending' ) ;
183
182
184
183
return Plotly . react ( gd , figureClone ) . then ( ( ) => {
You can’t perform that action at this time.
0 commit comments