From c8320da71642555b965b7518892e8612e04adedf Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 5 Oct 2025 00:46:27 -0600 Subject: [PATCH] refactor: simplify props destructuring in DockerTerminalModal component - Updated the props destructuring to directly include `serverId` instead of using a conditional spread operator. - Improved code readability by streamlining the object structure. --- .../dashboard/settings/web-server/docker-terminal-modal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dokploy/components/dashboard/settings/web-server/docker-terminal-modal.tsx b/apps/dokploy/components/dashboard/settings/web-server/docker-terminal-modal.tsx index dc39575d..5f072131 100644 --- a/apps/dokploy/components/dashboard/settings/web-server/docker-terminal-modal.tsx +++ b/apps/dokploy/components/dashboard/settings/web-server/docker-terminal-modal.tsx @@ -52,7 +52,7 @@ export const DockerTerminalModal = ({ { appName, appType, - ...(serverId ? { serverId } : {}), + serverId, }, { enabled: !!appName,