Skip to content

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

Revert "fix(studio): remove include data toggle if no pitr" (#39784)

Han Qiao5b1d388507f0
diff --git a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
index a5f85aa5f89..6488c82b3bc 100644
--- a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
@@ -398,9 +398,11 @@ export const CreateBranchModal = () => {
description="Clone production data into this branch"
>
<FormControl_Shadcn_>
- {hasPitrEnabled && (
- <Switch checked={field.value} onCheckedChange={field.onChange} />
- )}
+ <Switch
+ disabled={!hasPitrEnabled}
+ checked={field.value}
+ onCheckedChange={field.onChange}
+ />
</FormControl_Shadcn_>
</FormItemLayout>
)}