We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fdaedc commit 50c94b8Copy full SHA for 50c94b8
lib/util/stylesheet.js
@@ -29,10 +29,10 @@ StyleSheets.prototype.markAsUsed = function (fullyQualifiedName) {
29
const nameSplit = fullyQualifiedName.split('.');
30
const styleSheetName = nameSplit[0];
31
const styleSheetProperty = nameSplit[1];
32
+ const styleSheet = this.styleSheets[styleSheetName];
33
- if (this.styleSheets[styleSheetName]) {
34
- this.styleSheets[styleSheetName] = this
35
- .styleSheets[styleSheetName]
+ if (Array.isArray(styleSheet)) {
+ this.styleSheets[styleSheetName] = styleSheet
36
.filter((property) => property.key.name !== styleSheetProperty);
37
}
38
};
0 commit comments