{"action":"created","issue":{"url":"https://api.github.com/repos/harvard-canvas-branding/canvas-branding-colgsas/issues/20","repository_url":"https://api.github.com/repos/harvard-canvas-branding/canvas-branding-colgsas","labels_url":"https://api.github.com/repos/harvard-canvas-branding/canvas-branding-colgsas/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/harvard-canvas-branding/canvas-branding-colgsas/issues/20/comments","events_url":"https://api.github.com/repos/harvard-canvas-branding/canvas-branding-colgsas/issues/20/events","html_url":"https://github.com/harvard-canvas-branding/canvas-branding-colgsas/pull/20","id":156574415,"number":20,"title":"Fixes JS error","user":{"login":"arthurian","id":1165361,"avatar_url":"https://avatars.githubusercontent.com/u/1165361?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurian","html_url":"https://github.com/arthurian","followers_url":"https://api.github.com/users/arthurian/followers","following_url":"https://api.github.com/users/arthurian/following{/other_user}","gists_url":"https://api.github.com/users/arthurian/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurian/subscriptions","organizations_url":"https://api.github.com/users/arthurian/orgs","repos_url":"https://api.github.com/users/arthurian/repos","events_url":"https://api.github.com/users/arthurian/events{/privacy}","received_events_url":"https://api.github.com/users/arthurian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-24T18:14:45Z","updated_at":"2016-05-24T18:41:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/harvard-canvas-branding/canvas-branding-colgsas/pulls/20","html_url":"https://github.com/harvard-canvas-branding/canvas-branding-colgsas/pull/20","diff_url":"https://github.com/harvard-canvas-branding/canvas-branding-colgsas/pull/20.diff","patch_url":"https://github.com/harvard-canvas-branding/canvas-branding-colgsas/pull/20.patch"},"body":"This PR fixes an error that shows up in the console on non-course pages:\r\n\r\n```\r\nListItems.js:11 Uncaught TypeError: Cannot read property 'checklist_states' of undefined\r\n```\r\n\r\nThe error is being caused because `ENV.COURSE_WIZARD` is undefined. The changes in this PR ensures that the `require()` statement for the checklist is only invoked on course pages where that environment variable is defined. The same goes for the content migration page. \r\n\r\nNote: the diff makes it look like a lot changed, but most of that is just because I indented everything inside a self-invoking function and then wrapped each individual modification in its own function.\r\n\r\n@cmurtaugh @bermudezjd Can you review this and merge if it looks OK?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/harvard-canvas-branding/canvas-branding-colgsas/issues/comments/221364848","html_url":"https://github.com/harvard-canvas-branding/canvas-branding-colgsas/pull/20#issuecomment-221364848","issue_url":"https://api.github.com/repos/harvard-canvas-branding/canvas-branding-colgsas/issues/20","id":221364848,"user":{"login":"cmurtaugh","id":104486,"avatar_url":"https://avatars.githubusercontent.com/u/104486?v=3","gravatar_id":"","url":"https://api.github.com/users/cmurtaugh","html_url":"https://github.com/cmurtaugh","followers_url":"https://api.github.com/users/cmurtaugh/followers","following_url":"https://api.github.com/users/cmurtaugh/following{/other_user}","gists_url":"https://api.github.com/users/cmurtaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/cmurtaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmurtaugh/subscriptions","organizations_url":"https://api.github.com/users/cmurtaugh/orgs","repos_url":"https://api.github.com/users/cmurtaugh/repos","events_url":"https://api.github.com/users/cmurtaugh/events{/privacy}","received_events_url":"https://api.github.com/users/cmurtaugh/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T18:41:41Z","updated_at":"2016-05-24T18:41:41Z","body":"👍 "}}
{"actor":{"display_login":"cmurtaugh"}}