Skip to content

Commit

Permalink
Fix blank image size labels on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
mkevins committed Jan 22, 2020
1 parent ee6cc56 commit 8722b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class GalleryEdit extends Component {
imageSizes,
( { slug } ) => some( resizedImages, ( sizes ) => ( sizes[ slug ] ) )
),
( { name, slug } ) => ( { value: slug, label: name } )
( { name, slug, label } ) => ( { value: slug, label: label || name } )
);
}

Expand Down

0 comments on commit 8722b08

Please sign in to comment.