Skip to content

Commit 5f2a392

Browse files
author
Peter Richter
authored
Update generateAppendClassName.js
1 parent d3b9540 commit 5f2a392

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/generateAppendClassName.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ export default (styles, styleNames: Array<string>, errorWhenNotFound: boolean):
1717
} else {
1818
stylesIndex.set(styles, new Map());
1919
stylesIndexMap = new Map(stylesIndex);
20+
21+
stylesIndex.set(styles, new Map());
22+
stylesIndexMap = new Map();
23+
24+
for (key in stylesIndex) {
25+
if(stylesIndex.hasOwnProperty(key)) {
26+
stylesIndexMap.set(key, stylesIndex[key]);
27+
}
28+
}
2029
}
2130

2231
appendClassName = '';

0 commit comments

Comments
 (0)