Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Dec 27, 2023
1 parent 3b4274c commit d013d08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function GalleryEdit( props ) {
preferredStyle,
innerBlockImages,
blockWasJustInserted,
multiVGallerySelection,
multiGallerySelection,
} = useSelect(
( select ) => {
const {
Expand All @@ -130,7 +130,7 @@ function GalleryEdit( props ) {
clientId,
'inserter_menu'
),
multiVGallerySelection:
multiGallerySelection:
multiSelectedClientIds.length &&
multiSelectedClientIds.every(
( _clientId ) =>
Expand Down Expand Up @@ -598,7 +598,7 @@ function GalleryEdit( props ) {
</InspectorControls>
{ Platform.isWeb && (
<>
{ ! multiVGallerySelection && (
{ ! multiGallerySelection && (
<BlockControls group="other">
<MediaReplaceFlow
allowedTypes={ ALLOWED_MEDIA_TYPES }
Expand Down Expand Up @@ -631,7 +631,7 @@ function GalleryEdit( props ) {
}
blockProps={ innerBlocksProps }
insertBlocksAfter={ insertBlocksAfter }
multiVGallerySelection={ multiVGallerySelection }
multiGallerySelection={ multiGallerySelection }
/>
</>
);
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/gallery/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function Gallery( props ) {
blockProps,
__unstableLayoutClassNames: layoutClassNames,
isContentLocked,
multiVGallerySelection,
multiGallerySelection,
} = props;

const { align, columns, imageCrop } = attributes;
Expand Down Expand Up @@ -56,7 +56,7 @@ export default function Gallery( props ) {
isSelected={ isSelected }
insertBlocksAfter={ insertBlocksAfter }
showToolbarButton={
! multiVGallerySelection && ! isContentLocked
! multiGallerySelection && ! isContentLocked
}
className="blocks-gallery-caption"
label={ __( 'Gallery caption text' ) }
Expand Down

0 comments on commit d013d08

Please sign in to comment.