Skip to content

Commit

Permalink
Ensure lightbox toggle is shown if block-level setting exists (#54878)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiomorales authored and mikachan committed Sep 29, 2023
1 parent 23ad86f commit 78d3141
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 @@ -372,7 +372,7 @@ export default function Image( {
const lightboxSetting = useSetting( 'lightbox' );

const showLightboxToggle =
lightboxSetting === true || lightboxSetting?.allowEditing === true;
!! lightbox || lightboxSetting?.allowEditing === true;

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

0 comments on commit 78d3141

Please sign in to comment.