{"action":"created","comment":{"url":"https://api.github.com/repos/varholak-peter/economist-films/pulls/comments/118440135","pull_request_review_id":40228911,"id":118440135,"diff_hunk":"@@ -1,11 +1,167 @@\n // @flow\n import React from 'react';\n+import { browserHistory } from 'react-router';\n+import Slider from '../slider/slider';\n+import SidePanel from '../side-panel/side-panel';\n+import EpisodeSelected from '../episode-selected/episode-selected';\n+import { getSeriesByID } from '../../api/fetch';\n import './series-container.css';\n \n-class SeriesContainer extends React.Component {// eslint-disable-line\n+export type SeriesContainerProps = {\n+  params: {\n+    id: number,\n+  },\n+  location: {\n+    query: {\n+      expandedEpisode: string,\n+    }\n+  },\n+}\n+export type SeriesContainerState = {\n+  series: Object,\n+  selectedEpisode: number,\n+  isSliderSelected: boolean,\n+  isSideBarSelected: boolean,\n+  isEpisodeDetailSelected: boolean,\n+  goToEpisodeDetail: boolean,\n+}\n+\n+class SeriesContainer extends React.Component {\n+  constructor(props: SeriesContainerProps) {\n+    super(props);\n+    this.state = {\n+      // $FlowFixMe","path":"src/components/series-detail/series-container.js","position":34,"original_position":34,"commit_id":"1074e20ca3ad4c7aaa2878b67bc5f5bc4e252b1f","original_commit_id":"1074e20ca3ad4c7aaa2878b67bc5f5bc4e252b1f","user":{"login":"garySiladi","id":22029344,"avatar_url":"https://avatars3.githubusercontent.com/u/22029344?v=3","gravatar_id":"","url":"https://api.github.com/users/garySiladi","html_url":"https://github.com/garySiladi","followers_url":"https://api.github.com/users/garySiladi/followers","following_url":"https://api.github.com/users/garySiladi/following{/other_user}","gists_url":"https://api.github.com/users/garySiladi/gists{/gist_id}","starred_url":"https://api.github.com/users/garySiladi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garySiladi/subscriptions","organizations_url":"https://api.github.com/users/garySiladi/orgs","repos_url":"https://api.github.com/users/garySiladi/repos","events_url":"https://api.github.com/users/garySiladi/events{/privacy}","received_events_url":"https://api.github.com/users/garySiladi/received_events","type":"User","site_admin":false},"body":"you don't need this, just declare the type of the state `series` as `?Object`. Then on line 100 where you use it just put a check into the condition so you know it's not undefined or null as you do on line 131.","created_at":"2017-05-25T08:22:30Z","updated_at":"2017-05-25T08:27:41Z","html_url":"https://github.com/varholak-peter/economist-films/pull/53#discussion_r118440135","pull_request_url":"https://api.github.com/repos/varholak-peter/economist-films/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/varholak-peter/economist-films/pulls/comments/118440135"},"html":{"href":"https://github.com/varholak-peter/economist-films/pull/53#discussion_r118440135"},"pull_request":{"href":"https://api.github.com/repos/varholak-peter/economist-films/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/varholak-peter/economist-films/pulls/53","id":121369746,"html_url":"https://github.com/varholak-peter/economist-films/pull/53","diff_url":"https://github.com/varholak-peter/economist-films/pull/53.diff","patch_url":"https://github.com/varholak-peter/economist-films/pull/53.patch","issue_url":"https://api.github.com/repos/varholak-peter/economist-films/issues/53","number":53,"state":"open","locked":false,"title":"series page","user":{"login":"dominik-git","id":26134991,"avatar_url":"https://avatars1.githubusercontent.com/u/26134991?v=3","gravatar_id":"","url":"https://api.github.com/users/dominik-git","html_url":"https://github.com/dominik-git","followers_url":"https://api.github.com/users/dominik-git/followers","following_url":"https://api.github.com/users/dominik-git/following{/other_user}","gists_url":"https://api.github.com/users/dominik-git/gists{/gist_id}","starred_url":"https://api.github.com/users/dominik-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominik-git/subscriptions","organizations_url":"https://api.github.com/users/dominik-git/orgs","repos_url":"https://api.github.com/users/dominik-git/repos","events_url":"https://api.github.com/users/dominik-git/events{/privacy}","received_events_url":"https://api.github.com/users/dominik-git/received_events","type":"User","site_admin":false},"body":"You should know navigate to detail series page when you press on a first episode in a selected slider or when you open some other episode in the slider an press enter on a learn more button.\r\nWhen you are already on the series detail page you should know to navigate between sidePanel and slider by pressing left and right keyboard. \r\n","created_at":"2017-05-18T20:23:08Z","updated_at":"2017-05-25T08:27:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54e12490dfc89967534c2e9bb413530d0ae6b522","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/varholak-peter/economist-films/pulls/53/commits","review_comments_url":"https://api.github.com/repos/varholak-peter/economist-films/pulls/53/comments","review_comment_url":"https://api.github.com/repos/varholak-peter/economist-films/pulls/comments{/number}","comments_url":"https://api.github.com/repos/varholak-peter/economist-films/issues/53/comments","statuses_url":"https://api.github.com/repos/varholak-peter/economist-films/statuses/1074e20ca3ad4c7aaa2878b67bc5f5bc4e252b1f","head":{"label":"dominik-git:series","ref":"series","sha":"1074e20ca3ad4c7aaa2878b67bc5f5bc4e252b1f","user":{"login":"dominik-git","id":26134991,"avatar_url":"https://avatars1.githubusercontent.com/u/26134991?v=3","gravatar_id":"","url":"https://api.github.com/users/dominik-git","html_url":"https://github.com/dominik-git","followers_url":"https://api.github.com/users/dominik-git/followers","following_url":"https://api.github.com/users/dominik-git/following{/other_user}","gists_url":"https://api.github.com/users/dominik-git/gists{/gist_id}","starred_url":"https://api.github.com/users/dominik-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominik-git/subscriptions","organizations_url":"https://api.github.com/users/dominik-git/orgs","repos_url":"https://api.github.com/users/dominik-git/repos","events_url":"https://api.github.com/users/dominik-git/events{/privacy}","received_events_url":"https://api.github.com/users/dominik-git/received_events","type":"User","site_admin":false},"repo":{"id":84196358,"name":"economist-films","full_name":"dominik-git/economist-films","owner":{"login":"dominik-git","id":26134991,"avatar_url":"https://avatars1.githubusercontent.com/u/26134991?v=3","gravatar_id":"","url":"https://api.github.com/users/dominik-git","html_url":"https://github.com/dominik-git","followers_url":"https://api.github.com/users/dominik-git/followers","following_url":"https://api.github.com/users/dominik-git/following{/other_user}","gists_url":"https://api.github.com/users/dominik-git/gists{/gist_id}","starred_url":"https://api.github.com/users/dominik-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominik-git/subscriptions","organizations_url":"https://api.github.com/users/dominik-git/orgs","repos_url":"https://api.github.com/users/dominik-git/repos","events_url":"https://api.github.com/users/dominik-git/events{/privacy}","received_events_url":"https://api.github.com/users/dominik-git/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dominik-git/economist-films","description":null,"fork":true,"url":"https://api.github.com/repos/dominik-git/economist-films","forks_url":"https://api.github.com/repos/dominik-git/economist-films/forks","keys_url":"https://api.github.com/repos/dominik-git/economist-films/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dominik-git/economist-films/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dominik-git/economist-films/teams","hooks_url":"https://api.github.com/repos/dominik-git/economist-films/hooks","issue_events_url":"https://api.github.com/repos/dominik-git/economist-films/issues/events{/number}","events_url":"https://api.github.com/repos/dominik-git/economist-films/events","assignees_url":"https://api.github.com/repos/dominik-git/economist-films/assignees{/user}","branches_url":"https://api.github.com/repos/dominik-git/economist-films/branches{/branch}","tags_url":"https://api.github.com/repos/dominik-git/economist-films/tags","blobs_url":"https://api.github.com/repos/dominik-git/economist-films/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dominik-git/economist-films/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dominik-git/economist-films/git/refs{/sha}","trees_url":"https://api.github.com/repos/dominik-git/economist-films/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dominik-git/economist-films/statuses/{sha}","languages_url":"https://api.github.com/repos/dominik-git/economist-films/languages","stargazers_url":"https://api.github.com/repos/dominik-git/economist-films/stargazers","contributors_url":"https://api.github.com/repos/dominik-git/economist-films/contributors","subscribers_url":"https://api.github.com/repos/dominik-git/economist-films/subscribers","subscription_url":"https://api.github.com/repos/dominik-git/economist-films/subscription","commits_url":"https://api.github.com/repos/dominik-git/economist-films/commits{/sha}","git_commits_url":"https://api.github.com/repos/dominik-git/economist-films/git/commits{/sha}","comments_url":"https://api.github.com/repos/dominik-git/economist-films/comments{/number}","issue_comment_url":"https://api.github.com/repos/dominik-git/economist-films/issues/comments{/number}","contents_url":"https://api.github.com/repos/dominik-git/economist-films/contents/{+path}","compare_url":"https://api.github.com/repos/dominik-git/economist-films/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dominik-git/economist-films/merges","archive_url":"https://api.github.com/repos/dominik-git/economist-films/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dominik-git/economist-films/downloads","issues_url":"https://api.github.com/repos/dominik-git/economist-films/issues{/number}","pulls_url":"https://api.github.com/repos/dominik-git/economist-films/pulls{/number}","milestones_url":"https://api.github.com/repos/dominik-git/economist-films/milestones{/number}","notifications_url":"https://api.github.com/repos/dominik-git/economist-films/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dominik-git/economist-films/labels{/name}","releases_url":"https://api.github.com/repos/dominik-git/economist-films/releases{/id}","deployments_url":"https://api.github.com/repos/dominik-git/economist-films/deployments","created_at":"2017-03-07T12:25:59Z","updated_at":"2017-03-07T12:26:01Z","pushed_at":"2017-05-24T13:15:42Z","git_url":"git://github.com/dominik-git/economist-films.git","ssh_url":"git@github.com:dominik-git/economist-films.git","clone_url":"https://github.com/dominik-git/economist-films.git","svn_url":"https://github.com/dominik-git/economist-films","homepage":null,"size":362,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"varholak-peter:master","ref":"master","sha":"05d6c88b361b79f20f0a62c04324dc2eb2a3dd3b","user":{"login":"varholak-peter","id":19926448,"avatar_url":"https://avatars2.githubusercontent.com/u/19926448?v=3","gravatar_id":"","url":"https://api.github.com/users/varholak-peter","html_url":"https://github.com/varholak-peter","followers_url":"https://api.github.com/users/varholak-peter/followers","following_url":"https://api.github.com/users/varholak-peter/following{/other_user}","gists_url":"https://api.github.com/users/varholak-peter/gists{/gist_id}","starred_url":"https://api.github.com/users/varholak-peter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varholak-peter/subscriptions","organizations_url":"https://api.github.com/users/varholak-peter/orgs","repos_url":"https://api.github.com/users/varholak-peter/repos","events_url":"https://api.github.com/users/varholak-peter/events{/privacy}","received_events_url":"https://api.github.com/users/varholak-peter/received_events","type":"User","site_admin":false},"repo":{"id":83567648,"name":"economist-films","full_name":"varholak-peter/economist-films","owner":{"login":"varholak-peter","id":19926448,"avatar_url":"https://avatars2.githubusercontent.com/u/19926448?v=3","gravatar_id":"","url":"https://api.github.com/users/varholak-peter","html_url":"https://github.com/varholak-peter","followers_url":"https://api.github.com/users/varholak-peter/followers","following_url":"https://api.github.com/users/varholak-peter/following{/other_user}","gists_url":"https://api.github.com/users/varholak-peter/gists{/gist_id}","starred_url":"https://api.github.com/users/varholak-peter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varholak-peter/subscriptions","organizations_url":"https://api.github.com/users/varholak-peter/orgs","repos_url":"https://api.github.com/users/varholak-peter/repos","events_url":"https://api.github.com/users/varholak-peter/events{/privacy}","received_events_url":"https://api.github.com/users/varholak-peter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/varholak-peter/economist-films","description":null,"fork":false,"url":"https://api.github.com/repos/varholak-peter/economist-films","forks_url":"https://api.github.com/repos/varholak-peter/economist-films/forks","keys_url":"https://api.github.com/repos/varholak-peter/economist-films/keys{/key_id}","collaborators_url":"https://api.github.com/repos/varholak-peter/economist-films/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/varholak-peter/economist-films/teams","hooks_url":"https://api.github.com/repos/varholak-peter/economist-films/hooks","issue_events_url":"https://api.github.com/repos/varholak-peter/economist-films/issues/events{/number}","events_url":"https://api.github.com/repos/varholak-peter/economist-films/events","assignees_url":"https://api.github.com/repos/varholak-peter/economist-films/assignees{/user}","branches_url":"https://api.github.com/repos/varholak-peter/economist-films/branches{/branch}","tags_url":"https://api.github.com/repos/varholak-peter/economist-films/tags","blobs_url":"https://api.github.com/repos/varholak-peter/economist-films/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/varholak-peter/economist-films/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/varholak-peter/economist-films/git/refs{/sha}","trees_url":"https://api.github.com/repos/varholak-peter/economist-films/git/trees{/sha}","statuses_url":"https://api.github.com/repos/varholak-peter/economist-films/statuses/{sha}","languages_url":"https://api.github.com/repos/varholak-peter/economist-films/languages","stargazers_url":"https://api.github.com/repos/varholak-peter/economist-films/stargazers","contributors_url":"https://api.github.com/repos/varholak-peter/economist-films/contributors","subscribers_url":"https://api.github.com/repos/varholak-peter/economist-films/subscribers","subscription_url":"https://api.github.com/repos/varholak-peter/economist-films/subscription","commits_url":"https://api.github.com/repos/varholak-peter/economist-films/commits{/sha}","git_commits_url":"https://api.github.com/repos/varholak-peter/economist-films/git/commits{/sha}","comments_url":"https://api.github.com/repos/varholak-peter/economist-films/comments{/number}","issue_comment_url":"https://api.github.com/repos/varholak-peter/economist-films/issues/comments{/number}","contents_url":"https://api.github.com/repos/varholak-peter/economist-films/contents/{+path}","compare_url":"https://api.github.com/repos/varholak-peter/economist-films/compare/{base}...{head}","merges_url":"https://api.github.com/repos/varholak-peter/economist-films/merges","archive_url":"https://api.github.com/repos/varholak-peter/economist-films/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/varholak-peter/economist-films/downloads","issues_url":"https://api.github.com/repos/varholak-peter/economist-films/issues{/number}","pulls_url":"https://api.github.com/repos/varholak-peter/economist-films/pulls{/number}","milestones_url":"https://api.github.com/repos/varholak-peter/economist-films/milestones{/number}","notifications_url":"https://api.github.com/repos/varholak-peter/economist-films/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/varholak-peter/economist-films/labels{/name}","releases_url":"https://api.github.com/repos/varholak-peter/economist-films/releases{/id}","deployments_url":"https://api.github.com/repos/varholak-peter/economist-films/deployments","created_at":"2017-03-01T15:06:58Z","updated_at":"2017-03-09T09:04:54Z","pushed_at":"2017-05-24T13:15:44Z","git_url":"git://github.com/varholak-peter/economist-films.git","ssh_url":"git@github.com:varholak-peter/economist-films.git","clone_url":"https://github.com/varholak-peter/economist-films.git","svn_url":"https://github.com/varholak-peter/economist-films","homepage":null,"size":980,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/varholak-peter/economist-films/pulls/53"},"html":{"href":"https://github.com/varholak-peter/economist-films/pull/53"},"issue":{"href":"https://api.github.com/repos/varholak-peter/economist-films/issues/53"},"comments":{"href":"https://api.github.com/repos/varholak-peter/economist-films/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/varholak-peter/economist-films/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/varholak-peter/economist-films/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/varholak-peter/economist-films/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/varholak-peter/economist-films/statuses/1074e20ca3ad4c7aaa2878b67bc5f5bc4e252b1f"}}}}
{"actor":{"display_login":"garySiladi"}}