Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

fix: resolves missing empty storage warning on plan creation

towfiqi9a310fde72d0
diff --git a/frontend/src/components/Plan/PlanForm/PlanForm.tsx b/frontend/src/components/Plan/PlanForm/PlanForm.tsx
index 606e6f0..14ab02c 100644
--- a/frontend/src/components/Plan/PlanForm/PlanForm.tsx
+++ b/frontend/src/components/Plan/PlanForm/PlanForm.tsx
@@ -221,8 +221,8 @@ const PlanForm = ({
<label className={classes.label}>Backup Destination*</label>
{!planSettings.storage.name && <span className={classes.fieldErrorLabel}>{'Required'}</span>}
<StoragePicker
- storagePath={storagePath}
- storageId={storageId}
+ storagePath={storagePath || planSettings.storagePath}
+ storageId={storageId || planSettings.storage?.id || ''}
deviceId={planSettings.sourceId || 'main'}
disabled={type === 'edit' ? true : false}
onUpdate={(s: { storage: { name: string; id: string; type: string }; path: string }) =>