From 09c7a7833c204fea9043d13f39ac111ea52fdaa6 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 7 May 2013 19:25:18 -0700 Subject: [PATCH] Fix #1433 --- js/id/services/wikipedia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/services/wikipedia.js b/js/id/services/wikipedia.js index df9d0b8fc..e5850b566 100644 --- a/js/id/services/wikipedia.js +++ b/js/id/services/wikipedia.js @@ -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['*']; });