mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-11 22:16:15 +00:00
Merge "ve.ui.MWMediaDialog: mediaUploadBooklet may be undefined"
This commit is contained in:
commit
5102ed2ab5
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue