Skip to content

Commit b646bed

Browse files
committed
only set style rule properties if not null (fixes tests)
1 parent ca597a0 commit b646bed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/styles/rule.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class Rule {
9393
this.parent = parent;
9494

9595
// Add properties to style
96-
if (this.style) {
96+
if (this.style && this.properties) {
9797
this.style.properties = this.properties;
9898
}
9999

0 commit comments

Comments
 (0)