mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 08:14:33 +00:00
Merge "Ensure that the property exists"
This commit is contained in:
commit
996f0d07d7
|
@ -204,8 +204,8 @@ $.wikiEditor.modules.dialogs.config = {
|
|||
indexpageids: true
|
||||
} ).done( function ( data ) {
|
||||
var status;
|
||||
if ( !data.query ) {
|
||||
// This happens in some weird cases
|
||||
if ( !data.query || !data.query.pages ) {
|
||||
// This happens in some weird cases like interwiki links
|
||||
status = false;
|
||||
} else {
|
||||
var page = data.query.pages[data.query.pageids[0]];
|
||||
|
|
Loading…
Reference in a new issue