Skip to content

Commit

Permalink
Ensure lightbox toggle is shown if block-level setting exists
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiomorales committed Sep 27, 2023
1 parent a3f4f02 commit a8c0bd8
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 a8c0bd8

Please sign in to comment.