Skip to content

Commit

Permalink
delete from this.addedStyles
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkae committed Sep 4, 2024
1 parent abd5594 commit e381191
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/block-css/css-save-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class CssSaveCompiler {
// If the style was not added, then delete it from this.styles
if ( this.addedStyles[ `${ device }|${ selector }|${ rule }` ] === false ) {
delete this.styles[ device ][ selector ][ rule ]
delete this.addedStyles[ `${ device }|${ selector }|${ rule }` ]
} else {
const value = this.styles[ device ][ selector ][ rule ]
selectorCss += `${ rule }:${ value };`
Expand Down

0 comments on commit e381191

Please sign in to comment.