{"action":"created","comment":{"url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/comments/193349029","pull_request_review_id":126299609,"id":193349029,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzM0OTAyOQ==","diff_hunk":"@@ -15,12 +15,38 @@ export default class Wayfinder extends React.Component {\n \n   // TODO need to clear out and restart usersPath if user changes one of their answers\n   clickHandler = event => {\n+    const { usersPath } = this.state;\n     const goto = event.target.dataset.goto;\n+    const key = this.findKey(usersPath, goto);\n+    let modifiedPath = [...usersPath];\n+    console.log(usersPath);\n+    modifiedPath.splice(usersPath.indexOf(key) + 1);\n     this.setState(prevState => {\n       return {\n-        usersPath: prevState.usersPath.concat(goto)\n+        usersPath: modifiedPath.concat(goto)\n       };\n     });\n+    console.log(modifiedPath);\n+  };\n+\n+  findKey = (path, child) => {\n+    for (let key of path) {","path":"src/components/wayfinder/wayfinder.js","position":20,"original_position":20,"commit_id":"ff3b9747522a9b1740cb02e7d38aa604df78afe5","original_commit_id":"ff3b9747522a9b1740cb02e7d38aa604df78afe5","user":{"login":"vlbee","id":32312712,"node_id":"MDQ6VXNlcjMyMzEyNzEy","avatar_url":"https://avatars3.githubusercontent.com/u/32312712?v=4","gravatar_id":"","url":"https://api.github.com/users/vlbee","html_url":"https://github.com/vlbee","followers_url":"https://api.github.com/users/vlbee/followers","following_url":"https://api.github.com/users/vlbee/following{/other_user}","gists_url":"https://api.github.com/users/vlbee/gists{/gist_id}","starred_url":"https://api.github.com/users/vlbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlbee/subscriptions","organizations_url":"https://api.github.com/users/vlbee/orgs","repos_url":"https://api.github.com/users/vlbee/repos","events_url":"https://api.github.com/users/vlbee/events{/privacy}","received_events_url":"https://api.github.com/users/vlbee/received_events","type":"User","site_admin":false},"body":"This could perhaps be a util function we use to generate info for the form as well. ","created_at":"2018-06-06T09:28:18Z","updated_at":"2018-06-06T09:28:19Z","html_url":"https://github.com/fac-13/GP_ProjectBernadette/pull/63#discussion_r193349029","pull_request_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/63","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/comments/193349029"},"html":{"href":"https://github.com/fac-13/GP_ProjectBernadette/pull/63#discussion_r193349029"},"pull_request":{"href":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/63","id":192848890,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODQ4ODkw","html_url":"https://github.com/fac-13/GP_ProjectBernadette/pull/63","diff_url":"https://github.com/fac-13/GP_ProjectBernadette/pull/63.diff","patch_url":"https://github.com/fac-13/GP_ProjectBernadette/pull/63.patch","issue_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/issues/63","number":63,"state":"open","locked":false,"title":"update state to show modified usersPath","user":{"login":"tspeed90","id":31294722,"node_id":"MDQ6VXNlcjMxMjk0NzIy","avatar_url":"https://avatars1.githubusercontent.com/u/31294722?v=4","gravatar_id":"","url":"https://api.github.com/users/tspeed90","html_url":"https://github.com/tspeed90","followers_url":"https://api.github.com/users/tspeed90/followers","following_url":"https://api.github.com/users/tspeed90/following{/other_user}","gists_url":"https://api.github.com/users/tspeed90/gists{/gist_id}","starred_url":"https://api.github.com/users/tspeed90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tspeed90/subscriptions","organizations_url":"https://api.github.com/users/tspeed90/orgs","repos_url":"https://api.github.com/users/tspeed90/repos","events_url":"https://api.github.com/users/tspeed90/events{/privacy}","received_events_url":"https://api.github.com/users/tspeed90/received_events","type":"User","site_admin":false},"body":"If a user changes a question earlier in the tree, the page now renders the question following that last choice and clears the usersPath array in state to reflect their changes.","created_at":"2018-06-05T22:02:03Z","updated_at":"2018-06-06T09:28:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a093fe725cd168c4d0b2c16f0451696f8267c61","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jennah2121","id":25872585,"node_id":"MDQ6VXNlcjI1ODcyNTg1","avatar_url":"https://avatars3.githubusercontent.com/u/25872585?v=4","gravatar_id":"","url":"https://api.github.com/users/jennah2121","html_url":"https://github.com/jennah2121","followers_url":"https://api.github.com/users/jennah2121/followers","following_url":"https://api.github.com/users/jennah2121/following{/other_user}","gists_url":"https://api.github.com/users/jennah2121/gists{/gist_id}","starred_url":"https://api.github.com/users/jennah2121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennah2121/subscriptions","organizations_url":"https://api.github.com/users/jennah2121/orgs","repos_url":"https://api.github.com/users/jennah2121/repos","events_url":"https://api.github.com/users/jennah2121/events{/privacy}","received_events_url":"https://api.github.com/users/jennah2121/received_events","type":"User","site_admin":false},{"login":"iPhatty","id":32461758,"node_id":"MDQ6VXNlcjMyNDYxNzU4","avatar_url":"https://avatars3.githubusercontent.com/u/32461758?v=4","gravatar_id":"","url":"https://api.github.com/users/iPhatty","html_url":"https://github.com/iPhatty","followers_url":"https://api.github.com/users/iPhatty/followers","following_url":"https://api.github.com/users/iPhatty/following{/other_user}","gists_url":"https://api.github.com/users/iPhatty/gists{/gist_id}","starred_url":"https://api.github.com/users/iPhatty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iPhatty/subscriptions","organizations_url":"https://api.github.com/users/iPhatty/orgs","repos_url":"https://api.github.com/users/iPhatty/repos","events_url":"https://api.github.com/users/iPhatty/events{/privacy}","received_events_url":"https://api.github.com/users/iPhatty/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/63/commits","review_comments_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/63/comments","review_comment_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/issues/63/comments","statuses_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/statuses/ff3b9747522a9b1740cb02e7d38aa604df78afe5","head":{"label":"fac-13:clear-path","ref":"clear-path","sha":"ff3b9747522a9b1740cb02e7d38aa604df78afe5","user":{"login":"fac-13","id":31545747,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ1NzQ3","avatar_url":"https://avatars0.githubusercontent.com/u/31545747?v=4","gravatar_id":"","url":"https://api.github.com/users/fac-13","html_url":"https://github.com/fac-13","followers_url":"https://api.github.com/users/fac-13/followers","following_url":"https://api.github.com/users/fac-13/following{/other_user}","gists_url":"https://api.github.com/users/fac-13/gists{/gist_id}","starred_url":"https://api.github.com/users/fac-13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fac-13/subscriptions","organizations_url":"https://api.github.com/users/fac-13/orgs","repos_url":"https://api.github.com/users/fac-13/repos","events_url":"https://api.github.com/users/fac-13/events{/privacy}","received_events_url":"https://api.github.com/users/fac-13/received_events","type":"Organization","site_admin":false},"repo":{"id":135315048,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzMTUwNDg=","name":"GP_ProjectBernadette","full_name":"fac-13/GP_ProjectBernadette","owner":{"login":"fac-13","id":31545747,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ1NzQ3","avatar_url":"https://avatars0.githubusercontent.com/u/31545747?v=4","gravatar_id":"","url":"https://api.github.com/users/fac-13","html_url":"https://github.com/fac-13","followers_url":"https://api.github.com/users/fac-13/followers","following_url":"https://api.github.com/users/fac-13/following{/other_user}","gists_url":"https://api.github.com/users/fac-13/gists{/gist_id}","starred_url":"https://api.github.com/users/fac-13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fac-13/subscriptions","organizations_url":"https://api.github.com/users/fac-13/orgs","repos_url":"https://api.github.com/users/fac-13/repos","events_url":"https://api.github.com/users/fac-13/events{/privacy}","received_events_url":"https://api.github.com/users/fac-13/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fac-13/GP_ProjectBernadette","description":"A React decision tree app to help carers understand jargon and find relevant resources more quickly. ","fork":false,"url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette","forks_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/forks","keys_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/teams","hooks_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/hooks","issue_events_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/issues/events{/number}","events_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/events","assignees_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/assignees{/user}","branches_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/branches{/branch}","tags_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/tags","blobs_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/git/refs{/sha}","trees_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/statuses/{sha}","languages_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/languages","stargazers_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/stargazers","contributors_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/contributors","subscribers_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/subscribers","subscription_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/subscription","commits_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/commits{/sha}","git_commits_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/git/commits{/sha}","comments_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/comments{/number}","issue_comment_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/issues/comments{/number}","contents_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/contents/{+path}","compare_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/merges","archive_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/downloads","issues_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/issues{/number}","pulls_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls{/number}","milestones_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/milestones{/number}","notifications_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/labels{/name}","releases_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/releases{/id}","deployments_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/deployments","created_at":"2018-05-29T15:18:02Z","updated_at":"2018-06-05T21:28:20Z","pushed_at":"2018-06-05T22:02:04Z","git_url":"git://github.com/fac-13/GP_ProjectBernadette.git","ssh_url":"git@github.com:fac-13/GP_ProjectBernadette.git","clone_url":"https://github.com/fac-13/GP_ProjectBernadette.git","svn_url":"https://github.com/fac-13/GP_ProjectBernadette","homepage":"","size":1871,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":30,"license":null,"forks":0,"open_issues":30,"watchers":5,"default_branch":"master"}},"base":{"label":"fac-13:master","ref":"master","sha":"5cb49b1847607d3c062bb698cb68ca041bd106b5","user":{"login":"fac-13","id":31545747,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ1NzQ3","avatar_url":"https://avatars0.githubusercontent.com/u/31545747?v=4","gravatar_id":"","url":"https://api.github.com/users/fac-13","html_url":"https://github.com/fac-13","followers_url":"https://api.github.com/users/fac-13/followers","following_url":"https://api.github.com/users/fac-13/following{/other_user}","gists_url":"https://api.github.com/users/fac-13/gists{/gist_id}","starred_url":"https://api.github.com/users/fac-13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fac-13/subscriptions","organizations_url":"https://api.github.com/users/fac-13/orgs","repos_url":"https://api.github.com/users/fac-13/repos","events_url":"https://api.github.com/users/fac-13/events{/privacy}","received_events_url":"https://api.github.com/users/fac-13/received_events","type":"Organization","site_admin":false},"repo":{"id":135315048,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzMTUwNDg=","name":"GP_ProjectBernadette","full_name":"fac-13/GP_ProjectBernadette","owner":{"login":"fac-13","id":31545747,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ1NzQ3","avatar_url":"https://avatars0.githubusercontent.com/u/31545747?v=4","gravatar_id":"","url":"https://api.github.com/users/fac-13","html_url":"https://github.com/fac-13","followers_url":"https://api.github.com/users/fac-13/followers","following_url":"https://api.github.com/users/fac-13/following{/other_user}","gists_url":"https://api.github.com/users/fac-13/gists{/gist_id}","starred_url":"https://api.github.com/users/fac-13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fac-13/subscriptions","organizations_url":"https://api.github.com/users/fac-13/orgs","repos_url":"https://api.github.com/users/fac-13/repos","events_url":"https://api.github.com/users/fac-13/events{/privacy}","received_events_url":"https://api.github.com/users/fac-13/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fac-13/GP_ProjectBernadette","description":"A React decision tree app to help carers understand jargon and find relevant resources more quickly. ","fork":false,"url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette","forks_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/forks","keys_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/teams","hooks_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/hooks","issue_events_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/issues/events{/number}","events_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/events","assignees_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/assignees{/user}","branches_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/branches{/branch}","tags_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/tags","blobs_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/git/refs{/sha}","trees_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/statuses/{sha}","languages_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/languages","stargazers_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/stargazers","contributors_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/contributors","subscribers_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/subscribers","subscription_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/subscription","commits_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/commits{/sha}","git_commits_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/git/commits{/sha}","comments_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/comments{/number}","issue_comment_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/issues/comments{/number}","contents_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/contents/{+path}","compare_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/merges","archive_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/downloads","issues_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/issues{/number}","pulls_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls{/number}","milestones_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/milestones{/number}","notifications_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/labels{/name}","releases_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/releases{/id}","deployments_url":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/deployments","created_at":"2018-05-29T15:18:02Z","updated_at":"2018-06-05T21:28:20Z","pushed_at":"2018-06-05T22:02:04Z","git_url":"git://github.com/fac-13/GP_ProjectBernadette.git","ssh_url":"git@github.com:fac-13/GP_ProjectBernadette.git","clone_url":"https://github.com/fac-13/GP_ProjectBernadette.git","svn_url":"https://github.com/fac-13/GP_ProjectBernadette","homepage":"","size":1871,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":30,"license":null,"forks":0,"open_issues":30,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/63"},"html":{"href":"https://github.com/fac-13/GP_ProjectBernadette/pull/63"},"issue":{"href":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/issues/63"},"comments":{"href":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/fac-13/GP_ProjectBernadette/statuses/ff3b9747522a9b1740cb02e7d38aa604df78afe5"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"vlbee"}}