Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Dont clone figure.layout
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Dec 14, 2020
1 parent 7477eeb commit 0482abd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fragments/Graph.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,12 @@ class PlotlyGraph extends Component {
}

const configClone = this.getConfig(config, responsive);
const layoutClone = this.getLayout(figure.layout, responsive);

gd.classList.add('dash-graph--pending');

return Plotly.react(gd, {
data: figure.data,
layout: layoutClone,
layout: figure.layout,
frames: figure.frames,
config: configClone,
}).then(() => {
Expand Down

0 comments on commit 0482abd

Please sign in to comment.