mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Add missing check to confirmation dialog's "closed" handler
Apparently this can be undefined when Esc is pressed. Note this code cleanup related to but does not fix T313690. Bug: T313690 Change-Id: Ia4658f8e00a68ed4cc3a6ddb0a932b3218b813dc
This commit is contained in:
parent
576f27e3d5
commit
59c2ee6242
|
@ -345,7 +345,7 @@ ve.ui.MWTemplateDialog.prototype.checkRequiredParameters = function () {
|
|||
blankRequired.length
|
||||
)
|
||||
} ).closed.then( function ( data ) {
|
||||
if ( data.action === 'ok' ) {
|
||||
if ( data && data.action === 'ok' ) {
|
||||
deferred.resolve();
|
||||
} else {
|
||||
deferred.reject();
|
||||
|
|
Loading…
Reference in a new issue