Skip to content

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

chore: use pitr_enabled when checking for pitr sub

dragarciac235affcf832
diff --git a/studio/components/interfaces/Database/Backups/BackupsList.tsx b/studio/components/interfaces/Database/Backups/BackupsList.tsx
index dabc90d5837..6add480cb2c 100644
--- a/studio/components/interfaces/Database/Backups/BackupsList.tsx
+++ b/studio/components/interfaces/Database/Backups/BackupsList.tsx
@@ -21,7 +21,7 @@ const BackupsList = () => {
'queue_job.restore.prepare'
)
- const isPitrEnabled = backups?.configuration?.walg_enabled
+ const isPitrEnabled = backups?.configuration?.pitr_enabled
if (backups.isLoading) return <Loading />
if (backups.error) return <BackupsError />
diff --git a/studio/pages/project/[ref]/database/backups/scheduled.tsx b/studio/pages/project/[ref]/database/backups/scheduled.tsx
index 2a6fe5fbd3b..d32e43d89d2 100644
--- a/studio/pages/project/[ref]/database/backups/scheduled.tsx
+++ b/studio/pages/project/[ref]/database/backups/scheduled.tsx
@@ -18,7 +18,7 @@ const DatabaseScheduledBackups: NextPageWithLayout = () => {
const { project } = useProjectContext()
const ref = project?.ref
- const isPitrEnabled = backups?.configuration?.walg_enabled
+ const isPitrEnabled = backups?.configuration?.pitr_enabled
const canReadScheduledBackups = useCheckPermissions(PermissionAction.READ, 'back_ups')