Skip to content

Commit

Permalink
fix: use correct field for evaluating whether or not GitHub Enterpris…
Browse files Browse the repository at this point in the history
…e is selected (argoproj#5987)

Signed-off-by: Jonah Back <[email protected]>
  • Loading branch information
backjo authored Apr 7, 2021
1 parent 9afa833 commit 445872f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/settings/components/repos-list/repos-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export class ReposList extends React.Component<RouteComponentProps<any>, {connec
<div className='argo-form-row'>
<FormField formApi={formApi} label='Type' field='ghType' component={FormSelect} componentProps={{options: ['GitHub', 'GitHub Enterprise']}} />
</div>
{formApi.getFormState().values.type === 'GitHub Enterprise' && (
{formApi.getFormState().values.ghType === 'GitHub Enterprise' && (
<React.Fragment>
<div className='argo-form-row'>
<FormField
Expand Down

0 comments on commit 445872f

Please sign in to comment.