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 committed Sep 30, 2023
1 parent abecb1d commit 2bead96
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

1 comment on commit 2bead96

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 2bead96.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6363642930
📝 Reported issues:

Please sign in to comment.