Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: never create a default branch from modal (#37430)

Han Qiao0620e2df8ffd
diff --git a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
index a23bf75eb81..67e66aae6a9 100644
--- a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
@@ -182,6 +182,7 @@ export const CreateBranchModal = () => {
createBranch({
projectRef,
branchName: data.branchName,
+ is_default: false,
...(data.gitBranchName ? { gitBranch: data.gitBranchName } : {}),
})
}