{"action":"created","comment":{"url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/comments/200316519","pull_request_review_id":134606590,"id":200316519,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDMxNjUxOQ==","diff_hunk":"@@ -72,29 +72,38 @@ class FulfillerSelect extends React.Component {\n             this.fetchFulfillers(this.props.accessToken);\n         }\n \n-        this.getRecentFulfillerIds();\n+        this.getRecentFulfillerIds()\n+            .then(() => {\n+                if (this.state.recentFulfillerIds.length && !this.state.selectedFulfillerId) {\n+                    this.setState({ selectedFulfillerId: this.state.recentFulfillerIds[0] });\n+                }\n+            });\n     }\n \n     onChange(e) {\n         this.setState({\n-            selectedFulfillerId: e.fulfillerId\n+            selectedFulfillerId: e.fulfiller.fulfillerId","path":"src/FulfillerSelect.jsx","position":16,"original_position":16,"commit_id":"a68d2fe93640f8d296d85cb971b90ac1e78d9b5b","original_commit_id":"a68d2fe93640f8d296d85cb971b90ac1e78d9b5b","user":{"login":"Igrom","id":10243844,"node_id":"MDQ6VXNlcjEwMjQzODQ0","avatar_url":"https://avatars0.githubusercontent.com/u/10243844?v=4","gravatar_id":"","url":"https://api.github.com/users/Igrom","html_url":"https://github.com/Igrom","followers_url":"https://api.github.com/users/Igrom/followers","following_url":"https://api.github.com/users/Igrom/following{/other_user}","gists_url":"https://api.github.com/users/Igrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Igrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igrom/subscriptions","organizations_url":"https://api.github.com/users/Igrom/orgs","repos_url":"https://api.github.com/users/Igrom/repos","events_url":"https://api.github.com/users/Igrom/events{/privacy}","received_events_url":"https://api.github.com/users/Igrom/received_events","type":"User","site_admin":false},"body":"Look at getOptions for an explanation of why there is `.fulfiller.` in there now.","created_at":"2018-07-05T11:18:21Z","updated_at":"2018-07-05T11:18:22Z","html_url":"https://github.com/Cimpress/react-cimpress-fulfillers-components/pull/6#discussion_r200316519","pull_request_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/6","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/comments/200316519"},"html":{"href":"https://github.com/Cimpress/react-cimpress-fulfillers-components/pull/6#discussion_r200316519"},"pull_request":{"href":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/6","id":199437660,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NDM3NjYw","html_url":"https://github.com/Cimpress/react-cimpress-fulfillers-components/pull/6","diff_url":"https://github.com/Cimpress/react-cimpress-fulfillers-components/pull/6.diff","patch_url":"https://github.com/Cimpress/react-cimpress-fulfillers-components/pull/6.patch","issue_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/issues/6","number":6,"state":"open","locked":false,"title":"Default to most recently selected fulfiller, bugfixes","user":{"login":"Igrom","id":10243844,"node_id":"MDQ6VXNlcjEwMjQzODQ0","avatar_url":"https://avatars0.githubusercontent.com/u/10243844?v=4","gravatar_id":"","url":"https://api.github.com/users/Igrom","html_url":"https://github.com/Igrom","followers_url":"https://api.github.com/users/Igrom/followers","following_url":"https://api.github.com/users/Igrom/following{/other_user}","gists_url":"https://api.github.com/users/Igrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Igrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igrom/subscriptions","organizations_url":"https://api.github.com/users/Igrom/orgs","repos_url":"https://api.github.com/users/Igrom/repos","events_url":"https://api.github.com/users/Igrom/events{/privacy}","received_events_url":"https://api.github.com/users/Igrom/received_events","type":"User","site_admin":false},"body":"Changes:\r\n- version incremented to 0.4.2\r\n- a generator polyfill (`regenerator`, module `regeneratorRuntime`) was imported into the code in development, but not in production. This has been fixed.\r\n- fixed a misspelling in default Customizr URL (mockserver disregards domain names, hence was previously uncaught)\r\n- \"Recent fulfillers\" option group is now hidden if there are no settings in Customizr. Previously the option group was rendered empty, so it was just the \"Recent fulfillers\" option group header followed immediately by \"All fulfillers'.","created_at":"2018-07-05T11:16:49Z","updated_at":"2018-07-05T11:18:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64c057bd20c29dfa0f2be4d00b5cdc5439bf196e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/issues/6/comments","statuses_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/statuses/a68d2fe93640f8d296d85cb971b90ac1e78d9b5b","head":{"label":"Cimpress:5-default-to-the-most-recently-selected-fulfiller-in-fulfillerselect","ref":"5-default-to-the-most-recently-selected-fulfiller-in-fulfillerselect","sha":"a68d2fe93640f8d296d85cb971b90ac1e78d9b5b","user":{"login":"Cimpress","id":30873508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwODczNTA4","avatar_url":"https://avatars0.githubusercontent.com/u/30873508?v=4","gravatar_id":"","url":"https://api.github.com/users/Cimpress","html_url":"https://github.com/Cimpress","followers_url":"https://api.github.com/users/Cimpress/followers","following_url":"https://api.github.com/users/Cimpress/following{/other_user}","gists_url":"https://api.github.com/users/Cimpress/gists{/gist_id}","starred_url":"https://api.github.com/users/Cimpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cimpress/subscriptions","organizations_url":"https://api.github.com/users/Cimpress/orgs","repos_url":"https://api.github.com/users/Cimpress/repos","events_url":"https://api.github.com/users/Cimpress/events{/privacy}","received_events_url":"https://api.github.com/users/Cimpress/received_events","type":"Organization","site_admin":false},"repo":{"id":131135819,"node_id":"MDEwOlJlcG9zaXRvcnkxMzExMzU4MTk=","name":"react-cimpress-fulfillers-components","full_name":"Cimpress/react-cimpress-fulfillers-components","owner":{"login":"Cimpress","id":30873508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwODczNTA4","avatar_url":"https://avatars0.githubusercontent.com/u/30873508?v=4","gravatar_id":"","url":"https://api.github.com/users/Cimpress","html_url":"https://github.com/Cimpress","followers_url":"https://api.github.com/users/Cimpress/followers","following_url":"https://api.github.com/users/Cimpress/following{/other_user}","gists_url":"https://api.github.com/users/Cimpress/gists{/gist_id}","starred_url":"https://api.github.com/users/Cimpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cimpress/subscriptions","organizations_url":"https://api.github.com/users/Cimpress/orgs","repos_url":"https://api.github.com/users/Cimpress/repos","events_url":"https://api.github.com/users/Cimpress/events{/privacy}","received_events_url":"https://api.github.com/users/Cimpress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cimpress/react-cimpress-fulfillers-components","description":"React components making it easy to display fulfillers and/or fulfillment locations","fork":false,"url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components","forks_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/forks","keys_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/teams","hooks_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/hooks","issue_events_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/issues/events{/number}","events_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/events","assignees_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/assignees{/user}","branches_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/branches{/branch}","tags_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/tags","blobs_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/statuses/{sha}","languages_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/languages","stargazers_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/stargazers","contributors_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/contributors","subscribers_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/subscribers","subscription_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/subscription","commits_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/contents/{+path}","compare_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/merges","archive_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/downloads","issues_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/issues{/number}","pulls_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls{/number}","milestones_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/milestones{/number}","notifications_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/labels{/name}","releases_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/releases{/id}","deployments_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/deployments","created_at":"2018-04-26T09:54:59Z","updated_at":"2018-07-02T15:01:35Z","pushed_at":"2018-07-05T11:16:50Z","git_url":"git://github.com/Cimpress/react-cimpress-fulfillers-components.git","ssh_url":"git@github.com:Cimpress/react-cimpress-fulfillers-components.git","clone_url":"https://github.com/Cimpress/react-cimpress-fulfillers-components.git","svn_url":"https://github.com/Cimpress/react-cimpress-fulfillers-components","homepage":null,"size":1522,"stargazers_count":0,"watchers_count":0,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Cimpress:master","ref":"master","sha":"d9139e165343a3f4bdacf12d0175977f2b3bf784","user":{"login":"Cimpress","id":30873508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwODczNTA4","avatar_url":"https://avatars0.githubusercontent.com/u/30873508?v=4","gravatar_id":"","url":"https://api.github.com/users/Cimpress","html_url":"https://github.com/Cimpress","followers_url":"https://api.github.com/users/Cimpress/followers","following_url":"https://api.github.com/users/Cimpress/following{/other_user}","gists_url":"https://api.github.com/users/Cimpress/gists{/gist_id}","starred_url":"https://api.github.com/users/Cimpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cimpress/subscriptions","organizations_url":"https://api.github.com/users/Cimpress/orgs","repos_url":"https://api.github.com/users/Cimpress/repos","events_url":"https://api.github.com/users/Cimpress/events{/privacy}","received_events_url":"https://api.github.com/users/Cimpress/received_events","type":"Organization","site_admin":false},"repo":{"id":131135819,"node_id":"MDEwOlJlcG9zaXRvcnkxMzExMzU4MTk=","name":"react-cimpress-fulfillers-components","full_name":"Cimpress/react-cimpress-fulfillers-components","owner":{"login":"Cimpress","id":30873508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwODczNTA4","avatar_url":"https://avatars0.githubusercontent.com/u/30873508?v=4","gravatar_id":"","url":"https://api.github.com/users/Cimpress","html_url":"https://github.com/Cimpress","followers_url":"https://api.github.com/users/Cimpress/followers","following_url":"https://api.github.com/users/Cimpress/following{/other_user}","gists_url":"https://api.github.com/users/Cimpress/gists{/gist_id}","starred_url":"https://api.github.com/users/Cimpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cimpress/subscriptions","organizations_url":"https://api.github.com/users/Cimpress/orgs","repos_url":"https://api.github.com/users/Cimpress/repos","events_url":"https://api.github.com/users/Cimpress/events{/privacy}","received_events_url":"https://api.github.com/users/Cimpress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cimpress/react-cimpress-fulfillers-components","description":"React components making it easy to display fulfillers and/or fulfillment locations","fork":false,"url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components","forks_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/forks","keys_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/teams","hooks_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/hooks","issue_events_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/issues/events{/number}","events_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/events","assignees_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/assignees{/user}","branches_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/branches{/branch}","tags_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/tags","blobs_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/statuses/{sha}","languages_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/languages","stargazers_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/stargazers","contributors_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/contributors","subscribers_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/subscribers","subscription_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/subscription","commits_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/contents/{+path}","compare_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/merges","archive_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/downloads","issues_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/issues{/number}","pulls_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls{/number}","milestones_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/milestones{/number}","notifications_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/labels{/name}","releases_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/releases{/id}","deployments_url":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/deployments","created_at":"2018-04-26T09:54:59Z","updated_at":"2018-07-02T15:01:35Z","pushed_at":"2018-07-05T11:16:50Z","git_url":"git://github.com/Cimpress/react-cimpress-fulfillers-components.git","ssh_url":"git@github.com:Cimpress/react-cimpress-fulfillers-components.git","clone_url":"https://github.com/Cimpress/react-cimpress-fulfillers-components.git","svn_url":"https://github.com/Cimpress/react-cimpress-fulfillers-components","homepage":null,"size":1522,"stargazers_count":0,"watchers_count":0,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/6"},"html":{"href":"https://github.com/Cimpress/react-cimpress-fulfillers-components/pull/6"},"issue":{"href":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/issues/6"},"comments":{"href":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Cimpress/react-cimpress-fulfillers-components/statuses/a68d2fe93640f8d296d85cb971b90ac1e78d9b5b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Igrom"}}