Skip to content

Commit

Permalink
Ignore external images
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtr committed Dec 16, 2019
1 parent 2519cdc commit 4a43b08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ export default compose( [
const resizedImages = reduce(
ids,
( currentResizedImages, id ) => {
if ( ! id ) {
return currentResizedImages;
}
const image = getMedia( id );
const sizes = reduce( imageSizes, ( currentSizes, size ) => {
const defaultUrl = get( image, [ 'sizes', size.slug, 'url' ] );
Expand Down

0 comments on commit 4a43b08

Please sign in to comment.