Merge "Fix object vs. array initialization in template search"

This commit is contained in:
jenkins-bot 2021-06-14 13:25:30 +00:00 committed by Gerrit Code Review
commit c29dc420e0

View file

@ -180,7 +180,7 @@ ve.ui.MWTemplateTitleInputWidget.prototype.getLookupRequest = function () {
return promise
.then( function ( response ) {
var xhr, pageId, redirIndex,
redirects = ( response.query && response.query.redirects ) || {},
redirects = ( response.query && response.query.redirects ) || [],
origPages = ( response.query && response.query.pages ) || {},
newPages = [],
titles;