Merge "ve.ui.MWMediaDialog: mediaUploadBooklet may be undefined"

This commit is contained in:
jenkins-bot 2021-08-18 16:50:07 +00:00 committed by Gerrit Code Review
commit 5102ed2ab5

View file

@ -1189,7 +1189,7 @@ ve.ui.MWMediaDialog.prototype.getSetupProcess = function ( data ) {
this.actions.setAbilities( { upload: false, save: false, insert: false, done: false } );
this.mediaUploadBookletInit = false;
if ( data.file ) {
if ( data.file && this.mediaUploadBooklet ) {
this.searchTabs.setTabPanel( 'upload' );
this.mediaUploadBooklet.setFile( data.file );
}