Skip to content

Commit 2aece64

Browse files
Builds: default string in Organizations dropdown if GitHub user doesn't have 'Name' set (#5060)
1 parent ddc5f42 commit 2aece64

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

static/js/publisher/pages/Builds/RepoSelector.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ function RepoSelector({ githubData, setAutoTriggerBuild }: Props) {
192192
options={[
193193
{ label: "Select organization", value: "" },
194194
{
195-
label: githubData?.github_user.name,
195+
label:
196+
githubData?.github_user.name || githubData?.github_user.login,
196197
value: githubData?.github_user.login,
197198
},
198199
...getOrgs(),

0 commit comments

Comments
 (0)