Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding a new trace to a plot with Plotly.react #2602

Closed
tropys opened this issue May 2, 2018 · 2 comments
Closed

Error when adding a new trace to a plot with Plotly.react #2602

tropys opened this issue May 2, 2018 · 2 comments
Labels
bug something broken

Comments

@tropys
Copy link

tropys commented May 2, 2018

After updating to plotly.js 1.37.0, I'm getting the following error when adding a trace to a plot that already has at least one trace. This then seems to sometimes cause the trace to not render.

Error while plotting: TypeError: Cannot read property '0' of undefined
    at Object.plots.supplyDefaultsUpdateCalc (plotly.js:143231)
    at Object.exports.react (plotly.js:123205)
    at factory.js:100

Recreated with codepen: https://codepen.io/steph_curried/pen/gzWBQE
I had to use chrome dev tools console, codepens console does not show the error message.

@alexcjohnson
Copy link
Collaborator

Thanks for the report! I'll fix this, came in with #2577 I think.

@alexcjohnson alexcjohnson added the bug something broken label May 2, 2018
@etpinard
Copy link
Contributor

etpinard commented May 2, 2018

Thanks for the very clear report @tropys !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

3 participants