We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0fe7abe + 53b9493 commit 558d437Copy full SHA for 558d437
1 file changed
ui/packages/shared/pages/CreateClone/index.tsx
@@ -114,7 +114,8 @@ export const CreateClone = observer((props: Props) => {
114
115
const branches = (await stores.main.getBranches(props.instanceId)) ?? []
116
117
- let initiallySelectedBranch = branches[0];
+ const mainBranch = branches.find((branch) => branch.name === 'main')
118
+ let initiallySelectedBranch = mainBranch?.name ?? branches[0];
119
120
if (initialBranch) {
121
const foundBranch = branches.find((branch) => branch.name === initialBranch)
0 commit comments