From 3e14edc5715ffea86ce011cf9b4cc64f70cc5969 Mon Sep 17 00:00:00 2001 From: Arunavo Ray Date: Sat, 30 Aug 2025 00:47:33 +0530 Subject: [PATCH] fixed default overide --- src/components/config/ConfigTabs.tsx | 8 ++++---- src/components/config/ScheduleConfigForm.tsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/config/ConfigTabs.tsx b/src/components/config/ConfigTabs.tsx index 5c933b1..64b8ed0 100644 --- a/src/components/config/ConfigTabs.tsx +++ b/src/components/config/ConfigTabs.tsx @@ -50,12 +50,12 @@ export function ConfigTabs() { preserveOrgStructure: false, }, scheduleConfig: { - enabled: true, // Default to enabled - interval: 86400, // Default to daily (24 hours) + enabled: false, // Don't set defaults here - will be loaded from API + interval: 0, // Will be replaced with actual value from API }, cleanupConfig: { - enabled: true, // Default to enabled - retentionDays: 604800, // 7 days in seconds - Default retention period + enabled: false, // Don't set defaults here - will be loaded from API + retentionDays: 0, // Will be replaced with actual value from API }, mirrorOptions: { mirrorReleases: false, diff --git a/src/components/config/ScheduleConfigForm.tsx b/src/components/config/ScheduleConfigForm.tsx index 4f701dc..5235aaa 100644 --- a/src/components/config/ScheduleConfigForm.tsx +++ b/src/components/config/ScheduleConfigForm.tsx @@ -93,7 +93,7 @@ export function ScheduleConfigForm({ htmlFor="interval" className="block text-sm font-medium mb-1.5" > - Mirroring Interval + Sync Interval