Skip to content

Commit

Permalink
Tighten up activeSupports
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Oct 12, 2022
1 parent 66fe90a commit 2f0b910
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/block-editor/src/hooks/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ export function transformStyles(
results
) {
// If there are no active supports return early.
if ( Object.values( activeSupports ).every( ( isActive ) => ! isActive ) ) {
if (
Object.values( activeSupports ?? {} ).every(
( isActive ) => ! isActive
)
) {
return result;
}
// If the condition verifies we are probably in the presence of a wrapping transform
Expand Down

0 comments on commit 2f0b910

Please sign in to comment.