{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/10383","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/10383/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/10383/comments","events_url":"https://api.github.com/repos/facebook/react/issues/10383/events","html_url":"https://github.com/facebook/react/issues/10383","id":248025886,"number":10383,"title":"Array length cannot be read","user":{"login":"moquita","id":26963463,"avatar_url":"https://avatars1.githubusercontent.com/u/26963463?v=4","gravatar_id":"","url":"https://api.github.com/users/moquita","html_url":"https://github.com/moquita","followers_url":"https://api.github.com/users/moquita/followers","following_url":"https://api.github.com/users/moquita/following{/other_user}","gists_url":"https://api.github.com/users/moquita/gists{/gist_id}","starred_url":"https://api.github.com/users/moquita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moquita/subscriptions","organizations_url":"https://api.github.com/users/moquita/orgs","repos_url":"https://api.github.com/users/moquita/repos","events_url":"https://api.github.com/users/moquita/events{/privacy}","received_events_url":"https://api.github.com/users/moquita/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-08-04T14:38:53Z","updated_at":"2017-08-04T16:19:20Z","closed_at":"2017-08-04T16:18:25Z","body":"Hello, I am new in React and I'm trying to run a piece of code, where I have the following function in which I use a for to iterrate an array. But after I run it,it gives me the error:\r\nUncaught TypeError: Cannot read property 'length' of undefined.\r\nCan someone help me understand what is wrong with this?\r\nThanks ^^''\r\n\r\n\r\n\r\nmovimentiOnClick: function (idSelected) {\r\n        var itemSel = null;\r\n\r\n        let i = 0\r\n        for (i = 0; i< this.movimenti.length; i++) {\r\n            var item = movementi[i];\r\n            if (item.id = idSelected) {\r\n                itemSel = item;\r\n                // break;\r\n            }\r\n        }\r\n        this.context.router.push({ pathname: '/listaeTabelle/details/', state: { item: itemSel } });\r\n    },"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/320291061","html_url":"https://github.com/facebook/react/issues/10383#issuecomment-320291061","issue_url":"https://api.github.com/repos/facebook/react/issues/10383","id":320291061,"user":{"login":"aweary","id":6886061,"avatar_url":"https://avatars2.githubusercontent.com/u/6886061?v=4","gravatar_id":"","url":"https://api.github.com/users/aweary","html_url":"https://github.com/aweary","followers_url":"https://api.github.com/users/aweary/followers","following_url":"https://api.github.com/users/aweary/following{/other_user}","gists_url":"https://api.github.com/users/aweary/gists{/gist_id}","starred_url":"https://api.github.com/users/aweary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aweary/subscriptions","organizations_url":"https://api.github.com/users/aweary/orgs","repos_url":"https://api.github.com/users/aweary/repos","events_url":"https://api.github.com/users/aweary/events{/privacy}","received_events_url":"https://api.github.com/users/aweary/received_events","type":"User","site_admin":false},"created_at":"2017-08-04T16:19:20Z","updated_at":"2017-08-04T16:19:20Z","body":"You can reference our [Where To Get Support](https://facebook.github.io/react/community/support.html) to find additional support resources."}}
{"actor":{"display_login":"aweary"}}