mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-23 11:32:51 +00:00
Merge "Avoid undefined in Math.max"
This commit is contained in:
commit
ed2e476525
|
@ -460,7 +460,7 @@ ve.init.mw.ArticleTarget.prototype.parseMetadata = function ( response ) {
|
|||
// the request that gave us the lower revid
|
||||
this.loading = null;
|
||||
// HACK: Load with explicit revid to hopefully prevent this from happening again
|
||||
this.requestedRevId = Math.max( docRevId, this.revid );
|
||||
this.requestedRevId = Math.max( docRevId || 0, this.revid );
|
||||
this.load();
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue