Skip to content

Commit e6a84f0

Browse files
committed
fix(cache): fix cache bug when not painting
Signed-off-by: Guillaume Hivert <[email protected]>
1 parent 5ec2ee6 commit e6a84f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cache.ffi.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class Cache {
123123
}
124124

125125
#deleteStyles(klass) {
126-
klass.indexRules.forEach(indexRule => {
126+
klass.indexRules?.forEach(indexRule => {
127127
this.#stylesheet.deleteRule(indexRule)
128128
})
129129
}

0 commit comments

Comments
 (0)