Check for saveDialog in ve.init.mw.DesktopArticleTarget.saveComplete

In case the save is triggered without the save dialog (for example, when a null edit is made during suggested edits task in GrowthExperiments)

Bug: T298552
Change-Id: Id49b967cfa52d33848e9c911086000fa4501fa7f
This commit is contained in:
mewoph 2022-01-04 13:32:45 -08:00
parent 3c02dbcc7f
commit 93d54c701b

View file

@ -960,7 +960,10 @@ ve.init.mw.DesktopArticleTarget.prototype.saveComplete = function ( data ) {
wgIsRedirect: !!data.isRedirect
} );
this.saveDialog.reset();
if ( this.saveDialog ) {
this.saveDialog.reset();
}
this.replacePageContent(
data.content,
data.categorieshtml,