Skip to content

Commit

Permalink
Imabe 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 committed Sep 29, 2023
1 parent e58fc36 commit a21ce3e
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 a21ce3e

Please sign in to comment.