This commit is contained in:
John Firebaugh
2013-05-07 19:25:18 -07:00
parent 2dcd556864
commit 09c7a7833c

View File

@@ -48,7 +48,7 @@ iD.wikipedia = function() {
}), function(d) {
var list = d.query.pages[Object.keys(d.query.pages)[0]],
translations = {};
if (list) {
if (list && list.langlinks) {
list.langlinks.forEach(function(d) {
translations[d.lang] = d['*'];
});