The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: update so that branch does not get overwritten (#41920)
Ali Waseem7c0147940447
diff --git a/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsxindex b71554c2a4a..5ae5341f272 100644--- a/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx+++ b/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx@@ -147,7 +147,7 @@ export const EditBranchModal = ({ branch, visible, onClose }: EditBranchModalProconst onSubmit = (data: z.infer<typeof FormSchema>) => {if (!projectRef) return console.error('Project ref is required')- if (!ref) return console.error('Branch ref is required')+ if (!branch?.project_ref) return console.error('Branch ref is required')const payload: {branchRef: string@@ -155,7 +155,7 @@ export const EditBranchModal = ({ branch, visible, onClose }: EditBranchModalProbranchName: stringgitBranch?: string} = {- branchRef: ref,+ branchRef: branch.project_ref,projectRef,branchName: data.branchName,}