{"action":"closed","issue":{"url":"https://api.github.com/repos/spencermountain/wtf_wikipedia/issues/146","repository_url":"https://api.github.com/repos/spencermountain/wtf_wikipedia","labels_url":"https://api.github.com/repos/spencermountain/wtf_wikipedia/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/spencermountain/wtf_wikipedia/issues/146/comments","events_url":"https://api.github.com/repos/spencermountain/wtf_wikipedia/issues/146/events","html_url":"https://github.com/spencermountain/wtf_wikipedia/issues/146","id":351183688,"node_id":"MDU6SXNzdWUzNTExODM2ODg=","number":146,"title":"doc.images gives error 'Cannot read property 'forEach' of undefined at templates.forEach '","user":{"login":"yanosh-igor","id":435827,"node_id":"MDQ6VXNlcjQzNTgyNw==","avatar_url":"https://avatars0.githubusercontent.com/u/435827?v=4","gravatar_id":"","url":"https://api.github.com/users/yanosh-igor","html_url":"https://github.com/yanosh-igor","followers_url":"https://api.github.com/users/yanosh-igor/followers","following_url":"https://api.github.com/users/yanosh-igor/following{/other_user}","gists_url":"https://api.github.com/users/yanosh-igor/gists{/gist_id}","starred_url":"https://api.github.com/users/yanosh-igor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanosh-igor/subscriptions","organizations_url":"https://api.github.com/users/yanosh-igor/orgs","repos_url":"https://api.github.com/users/yanosh-igor/repos","events_url":"https://api.github.com/users/yanosh-igor/events{/privacy}","received_events_url":"https://api.github.com/users/yanosh-igor/received_events","type":"User","site_admin":false},"labels":[{"id":149133391,"node_id":"MDU6TGFiZWwxNDkxMzMzOTE=","url":"https://api.github.com/repos/spencermountain/wtf_wikipedia/labels/bug","name":"bug","color":"fc2929","default":true},{"id":913944907,"node_id":"MDU6TGFiZWw5MTM5NDQ5MDc=","url":"https://api.github.com/repos/spencermountain/wtf_wikipedia/labels/next-release","name":"next-release","color":"e28c7c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-16T12:27:46Z","updated_at":"2018-09-01T15:04:47Z","closed_at":"2018-09-01T15:04:47Z","author_association":"CONTRIBUTOR","body":"Hi, I'm trying to get images from this page https://en.wikipedia.org/wiki/Kurmi\r\nand function `doc.images()` throws an error:\r\n\r\n`TypeError: Cannot read property 'forEach' of undefined\r\n    at templates.forEach (/app/node_modules/wtf_wikipedia/src/document/Document.js:104:20)\r\n    at Array.forEach (<anonymous>)\r\n    at Document.images (/app/node_modules/wtf_wikipedia/src/document/Document.js:102:22)`\r\n\r\nI'm using latest verison 5.0.1.\r\n\r\nLooks like `obj` doesn't have any images.\r\n\r\n`this.templates().forEach((obj) => {\r\n      if (obj.template === 'gallery') {\r\n        obj.images.forEach((img) => arr.push(img));\r\n      }\r\n    });`"}}
{"actor":{"display_login":"spencermountain"}}