From 16bfc09202e796b51f67b22a0f01c8e14b989043 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 29 Mar 2025 20:24:39 -0600 Subject: [PATCH] Refactor serverId assignment in ShowBackups component: update logic to check for serverId presence in postgres object, improving code clarity and consistency. --- .../components/dashboard/database/backups/show-backups.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/components/dashboard/database/backups/show-backups.tsx b/apps/dokploy/components/dashboard/database/backups/show-backups.tsx index 29d4354cf..1c2b527bf 100644 --- a/apps/dokploy/components/dashboard/database/backups/show-backups.tsx +++ b/apps/dokploy/components/dashboard/database/backups/show-backups.tsx @@ -88,7 +88,7 @@ export const ShowBackups = ({ id, type }: Props) => { )} @@ -127,7 +127,7 @@ export const ShowBackups = ({ id, type }: Props) => { databaseId={id} databaseType={type} serverId={ - type === "web-server" ? undefined : postgres?.serverId + "serverId" in postgres ? postgres.serverId : undefined } />