Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (s3): Fix S3 prefill in playground on form edit

Rostislav Duginc6aed6b36d99
diff --git a/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx b/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx
index 85c0490c..19435626 100644
--- a/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx
+++ b/frontend/src/features/storages/ui/edit/EditStorageComponent.tsx
@@ -195,7 +195,16 @@ export function EditStorageComponent({
name: '',
type: IS_CLOUD ? StorageType.S3 : StorageType.LOCAL,
isSystem: false,
- localStorage: {},
+ localStorage: IS_CLOUD ? undefined : {},
+ s3Storage: IS_CLOUD
+ ? {
+ s3Bucket: '',
+ s3Region: '',
+ s3AccessKey: '',
+ s3SecretKey: '',
+ s3Endpoint: '',
+ }
+ : undefined,
},
);
}, [editingStorage]);