The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: block data branch creation if PITR is disabled (#38630)
Han Qiao55154a606595
diff --git a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsxindex e6c183d0bf0..6ca4120b6c9 100644--- a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx+++ b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx@@ -83,7 +83,6 @@ export const CreateBranchModal = () => {const isBranch = projectDetails?.parent_project_ref !== undefinedconst projectRef =projectDetails !== undefined ? (isBranch ? projectDetails.parent_project_ref : ref) : undefined- const noPhysicalBackups = !projectDetails?.is_physical_backups_enabledconst formId = 'create-branch-form'const FormSchema = z@@ -384,7 +383,7 @@ export const CreateBranchModal = () => {label={<><Label className="mr-2">Include data</Label>- {noPhysicalBackups && (+ {!hasPitrEnabled && (<Badge variant="warning" size="small">Requires PITR</Badge>@@ -397,7 +396,7 @@ export const CreateBranchModal = () => {><FormControl_Shadcn_><Switch- disabled={noPhysicalBackups}+ disabled={!hasPitrEnabled}checked={field.value}onCheckedChange={field.onChange}/>