Skip to content

Commit

Permalink
Fix error.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey committed Jun 12, 2020
1 parent 07c7c24 commit 8011140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/src/media-selector/views/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Button = wp.media.view.Button.extend( {
alert( error.responseJSON.message.replace( /(<([^>]+)>)/gi, '' ) ); // eslint-disable-line
} else {
const errors = getConfig( 'errors' );
alert( errors ); // eslint-disable-line
alert( errors.generic ); // eslint-disable-line
}
} );
},
Expand Down

0 comments on commit 8011140

Please sign in to comment.