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

fix: cannot read property 'split' of undefined #225

Merged
merged 3 commits into from
Feb 19, 2019
Merged

fix: cannot read property 'split' of undefined #225

merged 3 commits into from
Feb 19, 2019

Conversation

AlbertLucianto
Copy link
Contributor

Should fix #128

In getClassName, falsey values will return an empty string.

Empty string is returned instead of its own value, because in cases such as <div className="a" styleName={null} />, the resulting className should not be "a null".

@gajus gajus merged commit fa15c8d into gajus:master Feb 19, 2019
@gajus
Copy link
Owner

gajus commented Feb 19, 2019

🎉 This PR is included in version 5.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read property 'split' of undefined
2 participants