{"action":"created","issue":{"url":"https://api.github.com/repos/tomcheng/budget-reports/issues/1","repository_url":"https://api.github.com/repos/tomcheng/budget-reports","labels_url":"https://api.github.com/repos/tomcheng/budget-reports/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tomcheng/budget-reports/issues/1/comments","events_url":"https://api.github.com/repos/tomcheng/budget-reports/issues/1/events","html_url":"https://github.com/tomcheng/budget-reports/issues/1","id":325457417,"number":1,"title":"Inactive budgets break the app","user":{"login":"dkisselev","id":945848,"avatar_url":"https://avatars1.githubusercontent.com/u/945848?v=4","gravatar_id":"","url":"https://api.github.com/users/dkisselev","html_url":"https://github.com/dkisselev","followers_url":"https://api.github.com/users/dkisselev/followers","following_url":"https://api.github.com/users/dkisselev/following{/other_user}","gists_url":"https://api.github.com/users/dkisselev/gists{/gist_id}","starred_url":"https://api.github.com/users/dkisselev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkisselev/subscriptions","organizations_url":"https://api.github.com/users/dkisselev/orgs","repos_url":"https://api.github.com/users/dkisselev/repos","events_url":"https://api.github.com/users/dkisselev/events{/privacy}","received_events_url":"https://api.github.com/users/dkisselev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-22T20:48:49Z","updated_at":"2018-05-22T21:29:51Z","closed_at":null,"author_association":"NONE","body":"I have an older budget in my repo that hasn't been used in over a year.\r\n\r\nThe app fails to find categories for the current month as it iterates over the budget and completely fails out: \r\n\r\n```\r\nTypeError: Cannot read property 'categories' of undefined\r\n    at d (repoUtils.js:33)\r\n    at formatter (ynabRepo.js:62)\r\n    at repoUtils.js:17\r\n    at App.js:61\r\n    at Array.forEach (<anonymous>)\r\n    at e.<anonymous> (App.js:60)\r\n    at pe (react-dom.production.min.js:107)\r\n    at commitLifeCycles (react-dom.production.min.js:159)\r\n    at w (react-dom.production.min.js:185)\r\n    at x (react-dom.production.min.js:182)\r\n```\r\n\r\nIt seems that deleting budgets the YNAB's UI also doesn't hide them from API apps (at least not immediately, there's probably a queue or some other cleanup scripts that runs and eventually purges old budgets)"},"comment":{"url":"https://api.github.com/repos/tomcheng/budget-reports/issues/comments/391147195","html_url":"https://github.com/tomcheng/budget-reports/issues/1#issuecomment-391147195","issue_url":"https://api.github.com/repos/tomcheng/budget-reports/issues/1","id":391147195,"user":{"login":"dkisselev","id":945848,"avatar_url":"https://avatars1.githubusercontent.com/u/945848?v=4","gravatar_id":"","url":"https://api.github.com/users/dkisselev","html_url":"https://github.com/dkisselev","followers_url":"https://api.github.com/users/dkisselev/followers","following_url":"https://api.github.com/users/dkisselev/following{/other_user}","gists_url":"https://api.github.com/users/dkisselev/gists{/gist_id}","starred_url":"https://api.github.com/users/dkisselev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkisselev/subscriptions","organizations_url":"https://api.github.com/users/dkisselev/orgs","repos_url":"https://api.github.com/users/dkisselev/repos","events_url":"https://api.github.com/users/dkisselev/events{/privacy}","received_events_url":"https://api.github.com/users/dkisselev/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T21:29:51Z","updated_at":"2018-05-22T21:29:51Z","author_association":"NONE","body":"No rush, it looks like the budget did get deleted eventually but this issue will probably come up for others with multiple budgets as well."}}
{"actor":{"display_login":"dkisselev"}}