mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
'transcludedfrom' API response is an object, not array
Change-Id: Ibad2190cdf79b677cdf021f3253d1f432860f6e6
This commit is contained in:
parent
fe8c40759b
commit
39f4bf8626
|
@ -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( {
|
||||
|
|
Loading…
Reference in a new issue