Skip to content

Commit

Permalink
Fix issue with block deprecations failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Jan 25, 2022
1 parent 370527d commit d8cfac4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,9 @@ function GalleryEdit( props ) {
/>
</BlockControls>
{ noticeUI }
{ gap && createPortal( <GapStyle />, styleElement ) }
{ gap &&
styleElement &&
createPortal( <GapStyle />, styleElement ) }
<Gallery
{ ...props }
images={ images }
Expand Down

0 comments on commit d8cfac4

Please sign in to comment.