Skip to content

Conversation

@VeraZab
Copy link
Contributor

@VeraZab VeraZab commented Jul 3, 2018

// can't use default prop because plotly.js mutates it:
// https://github.com/plotly/react-chart-editor/issues/509
graphDiv.data.push(
this.props.useAsDefaultTrace
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is still vulnerable to this problem... I would go with a generator just to be sure.

@VeraZab VeraZab force-pushed the default-trace-fix branch 2 times, most recently from e3c12f0 to dcd13b5 Compare July 3, 2018 21:07
@VeraZab VeraZab force-pushed the default-trace-fix branch from dcd13b5 to 9683a80 Compare July 3, 2018 22:40
@nicolaskruchten
Copy link
Contributor

💃

@VeraZab VeraZab merged commit 5f65565 into master Jul 4, 2018
@VeraZab VeraZab deleted the default-trace-fix branch July 4, 2018 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deleting a trace and adding one populates editor with deleted trace

3 participants