{"action":"created","comment":{"url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/comments/183890834","pull_request_review_id":114972675,"id":183890834,"diff_hunk":"@@ -90,8 +111,15 @@ oneNoteDataProvider.getNotebooks().then((notebooks) => {\n \t\t\tariaSelectedId: initialSelectedId\n \t\t}\n \t};\n+\tlet notebookName = findNotebook(notebooks, initialSelectedId)\n \trender(globalProps, notebooks);\n+\trenderDropdown(globalProps, notebooks, notebookName, false);\n }).catch((value) => {\n \t// tslint:disable-next-line:no-console\n \tconsole.error(value);\n });\n+\n+export function findNotebook(notebooks, itemid) {","path":"sampleApp/sample.tsx","position":79,"original_position":79,"commit_id":"b095ee21c317c9260e95c82cb441579dec6c8920","original_commit_id":"b095ee21c317c9260e95c82cb441579dec6c8920","user":{"login":"mttwc","id":5062223,"avatar_url":"https://avatars0.githubusercontent.com/u/5062223?v=4","gravatar_id":"","url":"https://api.github.com/users/mttwc","html_url":"https://github.com/mttwc","followers_url":"https://api.github.com/users/mttwc/followers","following_url":"https://api.github.com/users/mttwc/following{/other_user}","gists_url":"https://api.github.com/users/mttwc/gists{/gist_id}","starred_url":"https://api.github.com/users/mttwc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mttwc/subscriptions","organizations_url":"https://api.github.com/users/mttwc/orgs","repos_url":"https://api.github.com/users/mttwc/repos","events_url":"https://api.github.com/users/mttwc/events{/privacy}","received_events_url":"https://api.github.com/users/mttwc/received_events","type":"User","site_admin":false},"body":"The itemId may not represent a notebook, it could be anything. We should rename this function.","created_at":"2018-04-24T21:48:23Z","updated_at":"2018-04-24T21:50:52Z","html_url":"https://github.com/OneNoteDev/OneNotePicker-JS/pull/114#discussion_r183890834","pull_request_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/114","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/comments/183890834"},"html":{"href":"https://github.com/OneNoteDev/OneNotePicker-JS/pull/114#discussion_r183890834"},"pull_request":{"href":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/114"}}},"pull_request":{"url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/114","id":183869306,"html_url":"https://github.com/OneNoteDev/OneNotePicker-JS/pull/114","diff_url":"https://github.com/OneNoteDev/OneNotePicker-JS/pull/114.diff","patch_url":"https://github.com/OneNoteDev/OneNotePicker-JS/pull/114.patch","issue_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/issues/114","number":114,"state":"open","locked":false,"title":"Janwil pickerdropdown","user":{"login":"JaneHazen","id":28895742,"avatar_url":"https://avatars1.githubusercontent.com/u/28895742?v=4","gravatar_id":"","url":"https://api.github.com/users/JaneHazen","html_url":"https://github.com/JaneHazen","followers_url":"https://api.github.com/users/JaneHazen/followers","following_url":"https://api.github.com/users/JaneHazen/following{/other_user}","gists_url":"https://api.github.com/users/JaneHazen/gists{/gist_id}","starred_url":"https://api.github.com/users/JaneHazen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaneHazen/subscriptions","organizations_url":"https://api.github.com/users/JaneHazen/orgs","repos_url":"https://api.github.com/users/JaneHazen/repos","events_url":"https://api.github.com/users/JaneHazen/events{/privacy}","received_events_url":"https://api.github.com/users/JaneHazen/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-24T21:27:57Z","updated_at":"2018-04-24T21:50:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f38576ce53aab9eee5ce31edc07ce9f700cdc64","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/114/commits","review_comments_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/114/comments","review_comment_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/issues/114/comments","statuses_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/statuses/b095ee21c317c9260e95c82cb441579dec6c8920","head":{"label":"OneNoteDev:janwil-pickerdropdown","ref":"janwil-pickerdropdown","sha":"b095ee21c317c9260e95c82cb441579dec6c8920","user":{"login":"OneNoteDev","id":6225732,"avatar_url":"https://avatars3.githubusercontent.com/u/6225732?v=4","gravatar_id":"","url":"https://api.github.com/users/OneNoteDev","html_url":"https://github.com/OneNoteDev","followers_url":"https://api.github.com/users/OneNoteDev/followers","following_url":"https://api.github.com/users/OneNoteDev/following{/other_user}","gists_url":"https://api.github.com/users/OneNoteDev/gists{/gist_id}","starred_url":"https://api.github.com/users/OneNoteDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OneNoteDev/subscriptions","organizations_url":"https://api.github.com/users/OneNoteDev/orgs","repos_url":"https://api.github.com/users/OneNoteDev/repos","events_url":"https://api.github.com/users/OneNoteDev/events{/privacy}","received_events_url":"https://api.github.com/users/OneNoteDev/received_events","type":"Organization","site_admin":false},"repo":{"id":66973999,"name":"OneNotePicker-JS","full_name":"OneNoteDev/OneNotePicker-JS","owner":{"login":"OneNoteDev","id":6225732,"avatar_url":"https://avatars3.githubusercontent.com/u/6225732?v=4","gravatar_id":"","url":"https://api.github.com/users/OneNoteDev","html_url":"https://github.com/OneNoteDev","followers_url":"https://api.github.com/users/OneNoteDev/followers","following_url":"https://api.github.com/users/OneNoteDev/following{/other_user}","gists_url":"https://api.github.com/users/OneNoteDev/gists{/gist_id}","starred_url":"https://api.github.com/users/OneNoteDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OneNoteDev/subscriptions","organizations_url":"https://api.github.com/users/OneNoteDev/orgs","repos_url":"https://api.github.com/users/OneNoteDev/repos","events_url":"https://api.github.com/users/OneNoteDev/events{/privacy}","received_events_url":"https://api.github.com/users/OneNoteDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OneNoteDev/OneNotePicker-JS","description":"A JavaScript UI component that allows a user to choose a section from a list of their notebooks.","fork":false,"url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS","forks_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/forks","keys_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/teams","hooks_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/hooks","issue_events_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/issues/events{/number}","events_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/events","assignees_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/assignees{/user}","branches_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/branches{/branch}","tags_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/tags","blobs_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/git/refs{/sha}","trees_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/statuses/{sha}","languages_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/languages","stargazers_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/stargazers","contributors_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/contributors","subscribers_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/subscribers","subscription_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/subscription","commits_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/commits{/sha}","git_commits_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/git/commits{/sha}","comments_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/comments{/number}","issue_comment_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/issues/comments{/number}","contents_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/contents/{+path}","compare_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/merges","archive_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/downloads","issues_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/issues{/number}","pulls_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls{/number}","milestones_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/milestones{/number}","notifications_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/labels{/name}","releases_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/releases{/id}","deployments_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/deployments","created_at":"2016-08-30T20:07:48Z","updated_at":"2018-04-24T18:16:58Z","pushed_at":"2018-04-24T21:27:58Z","git_url":"git://github.com/OneNoteDev/OneNotePicker-JS.git","ssh_url":"git@github.com:OneNoteDev/OneNotePicker-JS.git","clone_url":"https://github.com/OneNoteDev/OneNotePicker-JS.git","svn_url":"https://github.com/OneNoteDev/OneNotePicker-JS","homepage":"","size":754,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":15,"watchers":10,"default_branch":"master"}},"base":{"label":"OneNoteDev:master","ref":"master","sha":"bdbf0f24afed21df0b7a525f6f5057deec20a109","user":{"login":"OneNoteDev","id":6225732,"avatar_url":"https://avatars3.githubusercontent.com/u/6225732?v=4","gravatar_id":"","url":"https://api.github.com/users/OneNoteDev","html_url":"https://github.com/OneNoteDev","followers_url":"https://api.github.com/users/OneNoteDev/followers","following_url":"https://api.github.com/users/OneNoteDev/following{/other_user}","gists_url":"https://api.github.com/users/OneNoteDev/gists{/gist_id}","starred_url":"https://api.github.com/users/OneNoteDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OneNoteDev/subscriptions","organizations_url":"https://api.github.com/users/OneNoteDev/orgs","repos_url":"https://api.github.com/users/OneNoteDev/repos","events_url":"https://api.github.com/users/OneNoteDev/events{/privacy}","received_events_url":"https://api.github.com/users/OneNoteDev/received_events","type":"Organization","site_admin":false},"repo":{"id":66973999,"name":"OneNotePicker-JS","full_name":"OneNoteDev/OneNotePicker-JS","owner":{"login":"OneNoteDev","id":6225732,"avatar_url":"https://avatars3.githubusercontent.com/u/6225732?v=4","gravatar_id":"","url":"https://api.github.com/users/OneNoteDev","html_url":"https://github.com/OneNoteDev","followers_url":"https://api.github.com/users/OneNoteDev/followers","following_url":"https://api.github.com/users/OneNoteDev/following{/other_user}","gists_url":"https://api.github.com/users/OneNoteDev/gists{/gist_id}","starred_url":"https://api.github.com/users/OneNoteDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OneNoteDev/subscriptions","organizations_url":"https://api.github.com/users/OneNoteDev/orgs","repos_url":"https://api.github.com/users/OneNoteDev/repos","events_url":"https://api.github.com/users/OneNoteDev/events{/privacy}","received_events_url":"https://api.github.com/users/OneNoteDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OneNoteDev/OneNotePicker-JS","description":"A JavaScript UI component that allows a user to choose a section from a list of their notebooks.","fork":false,"url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS","forks_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/forks","keys_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/teams","hooks_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/hooks","issue_events_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/issues/events{/number}","events_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/events","assignees_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/assignees{/user}","branches_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/branches{/branch}","tags_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/tags","blobs_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/git/refs{/sha}","trees_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/statuses/{sha}","languages_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/languages","stargazers_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/stargazers","contributors_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/contributors","subscribers_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/subscribers","subscription_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/subscription","commits_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/commits{/sha}","git_commits_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/git/commits{/sha}","comments_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/comments{/number}","issue_comment_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/issues/comments{/number}","contents_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/contents/{+path}","compare_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/merges","archive_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/downloads","issues_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/issues{/number}","pulls_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls{/number}","milestones_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/milestones{/number}","notifications_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/labels{/name}","releases_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/releases{/id}","deployments_url":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/deployments","created_at":"2016-08-30T20:07:48Z","updated_at":"2018-04-24T18:16:58Z","pushed_at":"2018-04-24T21:27:58Z","git_url":"git://github.com/OneNoteDev/OneNotePicker-JS.git","ssh_url":"git@github.com:OneNoteDev/OneNotePicker-JS.git","clone_url":"https://github.com/OneNoteDev/OneNotePicker-JS.git","svn_url":"https://github.com/OneNoteDev/OneNotePicker-JS","homepage":"","size":754,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":15,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/114"},"html":{"href":"https://github.com/OneNoteDev/OneNotePicker-JS/pull/114"},"issue":{"href":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/issues/114"},"comments":{"href":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/issues/114/comments"},"review_comments":{"href":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/114/comments"},"review_comment":{"href":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/pulls/114/commits"},"statuses":{"href":"https://api.github.com/repos/OneNoteDev/OneNotePicker-JS/statuses/b095ee21c317c9260e95c82cb441579dec6c8920"}},"author_association":"NONE"}}
{"actor":{"display_login":"mttwc"}}