Skip to content

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

Merged
gajus merged 3 commits intogajus:masterfrom
AlbertLucianto:master
Feb 19, 2019
Merged

fix: cannot read property 'split' of undefined#225
gajus merged 3 commits intogajus:masterfrom
AlbertLucianto:master

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