Skip to content

Accept empty transforms #1829

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

Merged
merged 2 commits into from
Jun 28, 2017
Merged

Accept empty transforms #1829

merged 2 commits into from
Jun 28, 2017

Conversation

rreusser
Copy link
Contributor

transforms: [{}] causes plotly to fail with:

screen shot 2017-06-28 at 11 19 27

See: https://codepen.io/rsreusser/pen/GEyWav

I could have it compress empty transforms out of the picture ([{}] --> [], but because of indexing (it should work but I'm too worried it'll cause unexpected failures elsewhere), I've elected to just leave [{}] --> [{}]. This PR prevents it from throwing an error.

@rreusser rreusser added status: reviewable bug something broken labels Jun 28, 2017
@etpinard
Copy link
Contributor

Looks good. 💃

@rreusser rreusser merged commit d47ace6 into master Jun 28, 2017
@rreusser rreusser deleted the accept-empty-transform branch June 28, 2017 15:49
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

Successfully merging this pull request may close these issues.

2 participants