From b35bd9b719f65896954cea58c06d777891df74df Mon Sep 17 00:00:00 2001 From: vicke4 Date: Mon, 3 Mar 2025 01:09:03 +0530 Subject: [PATCH] feat(ui): coarsing number to avoid form validation error & placeholder change --- .../components/dashboard/database/backups/update-backup.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/components/dashboard/database/backups/update-backup.tsx b/apps/dokploy/components/dashboard/database/backups/update-backup.tsx index 397ca7f00..a140a0e65 100644 --- a/apps/dokploy/components/dashboard/database/backups/update-backup.tsx +++ b/apps/dokploy/components/dashboard/database/backups/update-backup.tsx @@ -47,7 +47,7 @@ const UpdateBackupSchema = z.object({ prefix: z.string().min(1, "Prefix required"), enabled: z.boolean(), database: z.string().min(1, "Database required"), - keepLatestCount: z.number(), + keepLatestCount: z.coerce.number(), }); type UpdateBackup = z.infer; @@ -272,7 +272,7 @@ export const UpdateBackup = ({ backupId, refetch }: Props) => { Keep the latest - + Optional. If provided, only keeps the latest N backups in the cloud.