Skip to content

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

fix: plan description could not be updated

towfiqi87edc5ad4cd7
diff --git a/backend/src/stores/PlanStore.ts b/backend/src/stores/PlanStore.ts
index d7c47ba..6a53d6b 100644
--- a/backend/src/stores/PlanStore.ts
+++ b/backend/src/stores/PlanStore.ts
@@ -197,6 +197,7 @@ export class PlanStore {
// Only allow certain fields to be updated
const allowedFields = [
'title',
+ 'description',
'isActive',
'inProgress',
'storagePath',
diff --git a/frontend/src/components/Plan/EditPlan/EditPlan.tsx b/frontend/src/components/Plan/EditPlan/EditPlan.tsx
index 5caaad8..e882001 100644
--- a/frontend/src/components/Plan/EditPlan/EditPlan.tsx
+++ b/frontend/src/components/Plan/EditPlan/EditPlan.tsx
@@ -20,7 +20,7 @@ const EditPlan = ({ close, plan }: EditPlanProps) => {
}
console.log('newPlan :', newPlan);
- const allowedFields = ['title', 'isActive', 'storagePath', 'sourceConfig', 'tags', 'settings'] as const;
+ const allowedFields = ['title', 'description', 'isActive', 'storagePath', 'sourceConfig', 'tags', 'settings'] as const;
const updatedPlan = Object.fromEntries(Object.entries(newPlan).filter(([key]) => allowedFields.includes(key as any)));
updatePlanMutation.mutate(