'transcludedfrom' API response is an object, not array

Change-Id: Ibad2190cdf79b677cdf021f3253d1f432860f6e6
This commit is contained in:
Bartosz Dziewoński 2020-09-16 22:30:11 +02:00
parent fe8c40759b
commit 39f4bf8626

View file

@ -81,10 +81,11 @@ function getPageData( pageName, oldId ) {
page: pageName,
oldid: oldId
} ).then( function ( response ) {
return OO.getProp( response, 'discussiontools' ) || [];
return OO.getProp( response, 'discussiontools' ) || {};
} );
} else {
lintPromise = transcludedFromPromise = $.Deferred().resolve( [] ).promise();
lintPromise = $.Deferred().resolve( [] ).promise();
transcludedFromPromise = $.Deferred().resolve( {} ).promise();
}
veMetadataPromise = api.get( {