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

Cannot read property 'slice' of null - when blank color passed #46

Open
JeremyBradshaw7 opened this issue Dec 11, 2020 · 0 comments
Open

Comments

@JeremyBradshaw7
Copy link

JeremyBradshaw7 commented Dec 11, 2020

It's throwing this exception with some data:
image

I've tracked it down to sending a blank color '' in one of the bands which I can fix my end, but it would be better if the component is resilient enough to recover from such bad data, eg by defaulting bad colours to white or transparent rather than crashing the app.

@JeremyBradshaw7 JeremyBradshaw7 changed the title Cannot read property 'slice' of null Cannot read property 'slice' of null - when blank color passed Dec 11, 2020
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

No branches or pull requests

1 participant