Skip to content

Commit bd67414

Browse files
Customizer: fix logo cropping.
Address a failure in the customizer site logo cropping after r60031. Check to ensure library exists before the call to findWhere. Follow up to r60031. Props: domainsupport, joemcgill, joedolson, kawsar007, addweb-solution-pvt-ltd, mukesh27. Fixes #63121. git-svn-id: https://develop.svn.wordpress.org/trunk@60054 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 86d064a commit bd67414

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/media/views/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Toolbar = View.extend(/** @lends wp.media.view.Toolbar.prototype */{
144144

145145
var requires = button.options.requires,
146146
disabled = false,
147-
modelsUploading = ! _.isEmpty( library.findWhere( { 'uploading': true } ) );
147+
modelsUploading = library && ! _.isEmpty( library.findWhere( { 'uploading': true } ) );
148148

149149
// Prevent insertion of attachments if any of them are still uploading.
150150
if ( selection && selection.models ) {

0 commit comments

Comments
 (0)