{"action":"created","comment":{"url":"https://api.github.com/repos/interglobalvision/applaya/pulls/comments/68299336","id":68299336,"diff_hunk":"@@ -13,28 +12,26 @@ export default class ApplyLayout extends Component {\n       return <Accounts.ui.LoginForm />;\n     }\n \n-    // This switch need a btter and nicer way to be declared.\n-    // I found out that trying to use an array doesn't work.\n-    // I wanna try to return react components dinamicaly by\n-    // using component name (String) or something like that\n-    switch (this.props.section.step) {\n-      case '1': return (\n-        <FormTest\n-          applicationId={this.props.application._id}\n-          step={this.props.section.step}\n-          sectionId={this.props.section.id}\n-          model={this.props.section.data} />\n-      );\n-      case '2': return (\n-        <TextTest\n-          applicationId={this.props.application._id}\n-          step={this.props.section.step}\n-          sectionId={this.props.section.id}\n-          model={this.props.section.data} />\n-      );\n-      default: return ':('; // 404\n+    let step = this.props.section.step;\n+\n+    if (step === undefined) {\n+      return ':('; // 404\n     }\n \n+    // Steps is an array, so positions start at 0.\n+    // But the step numbers for the routs start at 1. So we\n+    // Rest the offset to the step param received.","path":"app/imports/components/apply/applyLayout.jsx","position":43,"original_position":43,"commit_id":"b68d6a36727ae7b23827290c61078da0f9acc3cc","original_commit_id":"b68d6a36727ae7b23827290c61078da0f9acc3cc","user":{"login":"varffs","id":845186,"avatar_url":"https://avatars.githubusercontent.com/u/845186?v=3","gravatar_id":"","url":"https://api.github.com/users/varffs","html_url":"https://github.com/varffs","followers_url":"https://api.github.com/users/varffs/followers","following_url":"https://api.github.com/users/varffs/following{/other_user}","gists_url":"https://api.github.com/users/varffs/gists{/gist_id}","starred_url":"https://api.github.com/users/varffs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varffs/subscriptions","organizations_url":"https://api.github.com/users/varffs/orgs","repos_url":"https://api.github.com/users/varffs/repos","events_url":"https://api.github.com/users/varffs/events{/privacy}","received_events_url":"https://api.github.com/users/varffs/received_events","type":"User","site_admin":false},"body":"'rest' the offset?","created_at":"2016-06-23T19:28:52Z","updated_at":"2016-06-23T19:28:52Z","html_url":"https://github.com/interglobalvision/applaya/pull/13#discussion_r68299336","pull_request_url":"https://api.github.com/repos/interglobalvision/applaya/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/comments/68299336"},"html":{"href":"https://github.com/interglobalvision/applaya/pull/13#discussion_r68299336"},"pull_request":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/interglobalvision/applaya/pulls/13","id":74889966,"html_url":"https://github.com/interglobalvision/applaya/pull/13","diff_url":"https://github.com/interglobalvision/applaya/pull/13.diff","patch_url":"https://github.com/interglobalvision/applaya/pull/13.patch","issue_url":"https://api.github.com/repos/interglobalvision/applaya/issues/13","number":13,"state":"open","locked":false,"title":"add better apply section routing","user":{"login":"mixcas","id":1994425,"avatar_url":"https://avatars.githubusercontent.com/u/1994425?v=3","gravatar_id":"","url":"https://api.github.com/users/mixcas","html_url":"https://github.com/mixcas","followers_url":"https://api.github.com/users/mixcas/followers","following_url":"https://api.github.com/users/mixcas/following{/other_user}","gists_url":"https://api.github.com/users/mixcas/gists{/gist_id}","starred_url":"https://api.github.com/users/mixcas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixcas/subscriptions","organizations_url":"https://api.github.com/users/mixcas/orgs","repos_url":"https://api.github.com/users/mixcas/repos","events_url":"https://api.github.com/users/mixcas/events{/privacy}","received_events_url":"https://api.github.com/users/mixcas/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-23T03:09:16Z","updated_at":"2016-06-23T19:28:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21bfc1f23e034e4e25df46a46cbb7023171d28d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/interglobalvision/applaya/pulls/13/commits","review_comments_url":"https://api.github.com/repos/interglobalvision/applaya/pulls/13/comments","review_comment_url":"https://api.github.com/repos/interglobalvision/applaya/pulls/comments{/number}","comments_url":"https://api.github.com/repos/interglobalvision/applaya/issues/13/comments","statuses_url":"https://api.github.com/repos/interglobalvision/applaya/statuses/b68d6a36727ae7b23827290c61078da0f9acc3cc","head":{"label":"interglobalvision:improve-apply-sections","ref":"improve-apply-sections","sha":"b68d6a36727ae7b23827290c61078da0f9acc3cc","user":{"login":"interglobalvision","id":6844994,"avatar_url":"https://avatars.githubusercontent.com/u/6844994?v=3","gravatar_id":"","url":"https://api.github.com/users/interglobalvision","html_url":"https://github.com/interglobalvision","followers_url":"https://api.github.com/users/interglobalvision/followers","following_url":"https://api.github.com/users/interglobalvision/following{/other_user}","gists_url":"https://api.github.com/users/interglobalvision/gists{/gist_id}","starred_url":"https://api.github.com/users/interglobalvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interglobalvision/subscriptions","organizations_url":"https://api.github.com/users/interglobalvision/orgs","repos_url":"https://api.github.com/users/interglobalvision/repos","events_url":"https://api.github.com/users/interglobalvision/events{/privacy}","received_events_url":"https://api.github.com/users/interglobalvision/received_events","type":"Organization","site_admin":false},"repo":{"id":59867441,"name":"applaya","full_name":"interglobalvision/applaya","owner":{"login":"interglobalvision","id":6844994,"avatar_url":"https://avatars.githubusercontent.com/u/6844994?v=3","gravatar_id":"","url":"https://api.github.com/users/interglobalvision","html_url":"https://github.com/interglobalvision","followers_url":"https://api.github.com/users/interglobalvision/followers","following_url":"https://api.github.com/users/interglobalvision/following{/other_user}","gists_url":"https://api.github.com/users/interglobalvision/gists{/gist_id}","starred_url":"https://api.github.com/users/interglobalvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interglobalvision/subscriptions","organizations_url":"https://api.github.com/users/interglobalvision/orgs","repos_url":"https://api.github.com/users/interglobalvision/repos","events_url":"https://api.github.com/users/interglobalvision/events{/privacy}","received_events_url":"https://api.github.com/users/interglobalvision/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/interglobalvision/applaya","description":"Life is a beach, then you apply.","fork":false,"url":"https://api.github.com/repos/interglobalvision/applaya","forks_url":"https://api.github.com/repos/interglobalvision/applaya/forks","keys_url":"https://api.github.com/repos/interglobalvision/applaya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/interglobalvision/applaya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/interglobalvision/applaya/teams","hooks_url":"https://api.github.com/repos/interglobalvision/applaya/hooks","issue_events_url":"https://api.github.com/repos/interglobalvision/applaya/issues/events{/number}","events_url":"https://api.github.com/repos/interglobalvision/applaya/events","assignees_url":"https://api.github.com/repos/interglobalvision/applaya/assignees{/user}","branches_url":"https://api.github.com/repos/interglobalvision/applaya/branches{/branch}","tags_url":"https://api.github.com/repos/interglobalvision/applaya/tags","blobs_url":"https://api.github.com/repos/interglobalvision/applaya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/interglobalvision/applaya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/interglobalvision/applaya/git/refs{/sha}","trees_url":"https://api.github.com/repos/interglobalvision/applaya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/interglobalvision/applaya/statuses/{sha}","languages_url":"https://api.github.com/repos/interglobalvision/applaya/languages","stargazers_url":"https://api.github.com/repos/interglobalvision/applaya/stargazers","contributors_url":"https://api.github.com/repos/interglobalvision/applaya/contributors","subscribers_url":"https://api.github.com/repos/interglobalvision/applaya/subscribers","subscription_url":"https://api.github.com/repos/interglobalvision/applaya/subscription","commits_url":"https://api.github.com/repos/interglobalvision/applaya/commits{/sha}","git_commits_url":"https://api.github.com/repos/interglobalvision/applaya/git/commits{/sha}","comments_url":"https://api.github.com/repos/interglobalvision/applaya/comments{/number}","issue_comment_url":"https://api.github.com/repos/interglobalvision/applaya/issues/comments{/number}","contents_url":"https://api.github.com/repos/interglobalvision/applaya/contents/{+path}","compare_url":"https://api.github.com/repos/interglobalvision/applaya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/interglobalvision/applaya/merges","archive_url":"https://api.github.com/repos/interglobalvision/applaya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/interglobalvision/applaya/downloads","issues_url":"https://api.github.com/repos/interglobalvision/applaya/issues{/number}","pulls_url":"https://api.github.com/repos/interglobalvision/applaya/pulls{/number}","milestones_url":"https://api.github.com/repos/interglobalvision/applaya/milestones{/number}","notifications_url":"https://api.github.com/repos/interglobalvision/applaya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/interglobalvision/applaya/labels{/name}","releases_url":"https://api.github.com/repos/interglobalvision/applaya/releases{/id}","deployments_url":"https://api.github.com/repos/interglobalvision/applaya/deployments","created_at":"2016-05-27T23:00:31Z","updated_at":"2016-05-27T23:00:56Z","pushed_at":"2016-06-23T03:09:16Z","git_url":"git://github.com/interglobalvision/applaya.git","ssh_url":"git@github.com:interglobalvision/applaya.git","clone_url":"https://github.com/interglobalvision/applaya.git","svn_url":"https://github.com/interglobalvision/applaya","homepage":null,"size":51,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"interglobalvision:master","ref":"master","sha":"a6b56dc0c204f019206af23863bd92be3e4a7789","user":{"login":"interglobalvision","id":6844994,"avatar_url":"https://avatars.githubusercontent.com/u/6844994?v=3","gravatar_id":"","url":"https://api.github.com/users/interglobalvision","html_url":"https://github.com/interglobalvision","followers_url":"https://api.github.com/users/interglobalvision/followers","following_url":"https://api.github.com/users/interglobalvision/following{/other_user}","gists_url":"https://api.github.com/users/interglobalvision/gists{/gist_id}","starred_url":"https://api.github.com/users/interglobalvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interglobalvision/subscriptions","organizations_url":"https://api.github.com/users/interglobalvision/orgs","repos_url":"https://api.github.com/users/interglobalvision/repos","events_url":"https://api.github.com/users/interglobalvision/events{/privacy}","received_events_url":"https://api.github.com/users/interglobalvision/received_events","type":"Organization","site_admin":false},"repo":{"id":59867441,"name":"applaya","full_name":"interglobalvision/applaya","owner":{"login":"interglobalvision","id":6844994,"avatar_url":"https://avatars.githubusercontent.com/u/6844994?v=3","gravatar_id":"","url":"https://api.github.com/users/interglobalvision","html_url":"https://github.com/interglobalvision","followers_url":"https://api.github.com/users/interglobalvision/followers","following_url":"https://api.github.com/users/interglobalvision/following{/other_user}","gists_url":"https://api.github.com/users/interglobalvision/gists{/gist_id}","starred_url":"https://api.github.com/users/interglobalvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interglobalvision/subscriptions","organizations_url":"https://api.github.com/users/interglobalvision/orgs","repos_url":"https://api.github.com/users/interglobalvision/repos","events_url":"https://api.github.com/users/interglobalvision/events{/privacy}","received_events_url":"https://api.github.com/users/interglobalvision/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/interglobalvision/applaya","description":"Life is a beach, then you apply.","fork":false,"url":"https://api.github.com/repos/interglobalvision/applaya","forks_url":"https://api.github.com/repos/interglobalvision/applaya/forks","keys_url":"https://api.github.com/repos/interglobalvision/applaya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/interglobalvision/applaya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/interglobalvision/applaya/teams","hooks_url":"https://api.github.com/repos/interglobalvision/applaya/hooks","issue_events_url":"https://api.github.com/repos/interglobalvision/applaya/issues/events{/number}","events_url":"https://api.github.com/repos/interglobalvision/applaya/events","assignees_url":"https://api.github.com/repos/interglobalvision/applaya/assignees{/user}","branches_url":"https://api.github.com/repos/interglobalvision/applaya/branches{/branch}","tags_url":"https://api.github.com/repos/interglobalvision/applaya/tags","blobs_url":"https://api.github.com/repos/interglobalvision/applaya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/interglobalvision/applaya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/interglobalvision/applaya/git/refs{/sha}","trees_url":"https://api.github.com/repos/interglobalvision/applaya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/interglobalvision/applaya/statuses/{sha}","languages_url":"https://api.github.com/repos/interglobalvision/applaya/languages","stargazers_url":"https://api.github.com/repos/interglobalvision/applaya/stargazers","contributors_url":"https://api.github.com/repos/interglobalvision/applaya/contributors","subscribers_url":"https://api.github.com/repos/interglobalvision/applaya/subscribers","subscription_url":"https://api.github.com/repos/interglobalvision/applaya/subscription","commits_url":"https://api.github.com/repos/interglobalvision/applaya/commits{/sha}","git_commits_url":"https://api.github.com/repos/interglobalvision/applaya/git/commits{/sha}","comments_url":"https://api.github.com/repos/interglobalvision/applaya/comments{/number}","issue_comment_url":"https://api.github.com/repos/interglobalvision/applaya/issues/comments{/number}","contents_url":"https://api.github.com/repos/interglobalvision/applaya/contents/{+path}","compare_url":"https://api.github.com/repos/interglobalvision/applaya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/interglobalvision/applaya/merges","archive_url":"https://api.github.com/repos/interglobalvision/applaya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/interglobalvision/applaya/downloads","issues_url":"https://api.github.com/repos/interglobalvision/applaya/issues{/number}","pulls_url":"https://api.github.com/repos/interglobalvision/applaya/pulls{/number}","milestones_url":"https://api.github.com/repos/interglobalvision/applaya/milestones{/number}","notifications_url":"https://api.github.com/repos/interglobalvision/applaya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/interglobalvision/applaya/labels{/name}","releases_url":"https://api.github.com/repos/interglobalvision/applaya/releases{/id}","deployments_url":"https://api.github.com/repos/interglobalvision/applaya/deployments","created_at":"2016-05-27T23:00:31Z","updated_at":"2016-05-27T23:00:56Z","pushed_at":"2016-06-23T03:09:16Z","git_url":"git://github.com/interglobalvision/applaya.git","ssh_url":"git@github.com:interglobalvision/applaya.git","clone_url":"https://github.com/interglobalvision/applaya.git","svn_url":"https://github.com/interglobalvision/applaya","homepage":null,"size":51,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/13"},"html":{"href":"https://github.com/interglobalvision/applaya/pull/13"},"issue":{"href":"https://api.github.com/repos/interglobalvision/applaya/issues/13"},"comments":{"href":"https://api.github.com/repos/interglobalvision/applaya/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/interglobalvision/applaya/statuses/b68d6a36727ae7b23827290c61078da0f9acc3cc"}}}}
{"actor":{"display_login":"varffs"}}