Skip to content

Commit

Permalink
Merge pull request #4818 from WordPress/fix/gallery-shortcode-typeerror
Browse files Browse the repository at this point in the history
Gallery: Fix regression in conversion from shortcode
  • Loading branch information
mcsf authored Feb 2, 2018
2 parents c09407a + 3739fa3 commit b02eb78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/library/gallery/gallery-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class GalleryImage extends Component {

const className = classnames( {
'is-selected': isSelected,
'is-transient': 0 === url.indexOf( 'blob:' ),
'is-transient': url && 0 === url.indexOf( 'blob:' ),
} );

// Disable reason: Each block can be selected by clicking on it and we should keep the same saved markup
Expand Down

0 comments on commit b02eb78

Please sign in to comment.