Merge pull request #169 from snowball-tools/eric/snow-314-dashboarduicreate-template-app-page-auto-select-first-git
fix: auto select first git account
This commit is contained in:
commit
b17e9df1e4
@ -219,6 +219,7 @@ export const Select = ({
|
||||
getItemProps,
|
||||
openMenu,
|
||||
} = useCombobox({
|
||||
defaultInputValue: (options[0] as unknown as SelectOption)?.value,
|
||||
items: filteredItems,
|
||||
selectedItem: multiple ? null : (value as SelectOption) || null,
|
||||
// @ts-expect-error – there are two params but we don't need the second one
|
||||
|
@ -151,8 +151,10 @@ const CreateRepo = () => {
|
||||
The project will be cloned into this repository
|
||||
</Heading>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col justify-start gap-3">
|
||||
<span className="text-sm text-elements-high-em">Git account</span>
|
||||
{gitAccounts.length > 0 ? (
|
||||
<Controller
|
||||
name="account"
|
||||
control={control}
|
||||
@ -169,6 +171,9 @@ const CreateRepo = () => {
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
) : (
|
||||
<Select options={[]} disabled />
|
||||
)}
|
||||
</div>
|
||||
<div className="flex flex-col justify-start gap-3">
|
||||
<span className="text-sm text-elements-high-em">Name the repo</span>
|
||||
|
Loading…
Reference in New Issue
Block a user