Permalink
Browse files

Fix JS error on featured image import

  • Loading branch information...
Charlie Merland
Charlie Merland committed Sep 11, 2017
1 parent 5bb6925 commit 5bfbfc8a66348ad57a359e57ba1a1f94a5c8dcec
Showing with 3 additions and 1 deletion.
  1. +3 −1 assets/js/admin/wpmoly-media.js
@@ -321,7 +321,9 @@ var wpmoly_images, wpmoly_posters;
success: function( response ) {
if ( response ) {
wp.media.featuredImage.set( response.data );
$( '#wpmoly-movie-preview-poster > img' ).prop( 'src', image.attributes.url );
if ( undefined != image.attributes ) {
$( '#wpmoly-movie-preview-poster > img' ).prop( 'src', image.attributes.url );
}
}
},
complete: function() {

0 comments on commit 5bfbfc8

Please sign in to comment.