Skip to content

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

fix: clean up no longer use variable

dragarcia058211e6fc23
diff --git a/studio/components/interfaces/Database/Backups/BackupItem.tsx b/studio/components/interfaces/Database/Backups/BackupItem.tsx
index 2565cb791fa..45041016a34 100644
--- a/studio/components/interfaces/Database/Backups/BackupItem.tsx
+++ b/studio/components/interfaces/Database/Backups/BackupItem.tsx
@@ -55,15 +55,13 @@ const BackupItem = ({ projectRef, backup, index }: BackupItemProps) => {
if (backup.status === 'COMPLETED')
return (
<div className="flex space-x-4">
- {backup.data.canRestore && (
- <Button
- type="default"
- disabled={!canTriggerScheduledBackups || isRestoring}
- onClick={onRestoreClick}
- >
- Restore
- </Button>
- )}
+ <Button
+ type="default"
+ disabled={!canTriggerScheduledBackups || isRestoring}
+ onClick={onRestoreClick}
+ >
+ Restore
+ </Button>
</div>
)
return <Badge color="yellow">Backup In Progress...</Badge>