Skip to content

Commit 2b912b1

Browse files
fix issue of create issue modal not working with invalid org (#899)
1 parent f54a75f commit 2b912b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/components/github_repo_selector/github_repo_selector.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default class GithubRepoSelector extends PureComponent {
4848
}
4949

5050
render() {
51-
const repoOptions = this.props.yourRepos.repos.map((item) => ({value: item.full_name, label: item.full_name}));
51+
const repoOptions = this.props.yourRepos.repos ? this.props.yourRepos.repos.map((item) => ({value: item.full_name, label: item.full_name})) : [];
5252

5353
return (
5454
<div className={'form-group x3'}>

0 commit comments

Comments
 (0)