Skip to content

Commit

Permalink
small changes to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkae committed Sep 5, 2024
1 parent 4504171 commit fab7468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/block-css/block-style-generator-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,14 @@ export class BlockStyleGenerator {
// Call block styles that are added conditionally
if ( typeof blockStyle === 'function' ) {
const fn = blockStyle
const _BlockCssFunc = blockStyle => {
if ( ! this.styleShouldRender( blockStyle, attributes ) ) {
const _BlockCssFunc = _blockStyle => {
if ( ! this.styleShouldRender( _blockStyle, attributes ) ) {
return
}

return BlockCssFunc( {
...this.commonProps,
...blockStyle,
..._blockStyle,
version: args.version || this.commonProps.version,
versionDeprecated: args.versionDeprecated || this.commonProps.versionDeprecated,
// blockState: args.blockState,
Expand Down

0 comments on commit fab7468

Please sign in to comment.