diff --git a/src/js/media/views/modal.js b/src/js/media/views/modal.js index e3d9ad1701..cfc396bf80 100644 --- a/src/js/media/views/modal.js +++ b/src/js/media/views/modal.js @@ -190,7 +190,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{ selectHandler: function( event ) { var selection = this.controller.state().get( 'selection' ); - if ( ! selection.length > 0 ) { + if ( selection.length <= 0 ) { return; }