Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fa15c8d

Browse files
AlbertLuciantogajus
authored andcommitted
fix: cannot read property 'split' of undefined (#225)
* fix: cannot read property 'split' of undefined * fix: lint error in getClassName * fix: lint error in getClassName
1 parent b3ae56b commit fa15c8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/getClassName.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ export default (styleNameValue: string, styleModuleImportMap: StyleModuleImportM
7272
const handleMissingStyleName = options && options.handleMissingStyleName ||
7373
DEFAULT_HANDLE_MISSING_STYLENAME_OPTION;
7474

75+
if (!styleNameValue) {
76+
return '';
77+
}
78+
7579
return styleNameValue
7680
.split(' ')
7781
.filter((styleName) => {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /