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 23, 2020
1 parent c079120 commit ece6e75
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 ece6e75

Please sign in to comment.