Skip to content

Commit

Permalink
Image Block: Fix browser console error when clicking "Expand on Click" (
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored and mikachan committed Oct 5, 2023
1 parent e93d348 commit baf1425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export default function Image( {
!! lightbox || lightboxSetting?.allowEditing === true;

const lightboxChecked =
lightbox?.enabled || ( ! lightbox && lightboxSetting?.enabled );
!! lightbox?.enabled || ( ! lightbox && !! lightboxSetting?.enabled );

const dimensionsControl = (
<DimensionsTool
Expand Down

0 comments on commit baf1425

Please sign in to comment.