Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Jun 7, 2024
1 parent 40089a5 commit 5ca5f67
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { useIntegrationKind } from '../hooks/use-repository-kind'
export const createRepositoryProviderFormSchema = z.object({
displayName: z.string().trim(),
accessToken: z.string(),
apiBase: z.string().optional()
apiBase: z.string().optional().nullable()
})

export const updateRepositoryProviderFormSchema =
Expand Down Expand Up @@ -190,7 +190,8 @@ export function CommonProviderForm<T extends boolean>({
autoCapitalize="none"
autoCorrect="off"
autoComplete="off"
{...field}
value={field.value ?? ''}
onChange={e => field.onChange(e.target.value)}
/>
</FormControl>
<FormMessage />
Expand Down

0 comments on commit 5ca5f67

Please sign in to comment.