From 7599565e73b8680950f40eaf0a42958dc7fe6101 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 3 Mar 2026 07:05:09 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../deployments/show-queue-table.tsx | 27 ++++++++++++------- apps/dokploy/server/api/routers/deployment.ts | 5 +--- packages/server/src/services/deployment.ts | 4 +-- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/apps/dokploy/components/dashboard/deployments/show-queue-table.tsx b/apps/dokploy/components/dashboard/deployments/show-queue-table.tsx index c9f6d9dde..f86df48b0 100644 --- a/apps/dokploy/components/dashboard/deployments/show-queue-table.tsx +++ b/apps/dokploy/components/dashboard/deployments/show-queue-table.tsx @@ -73,14 +73,18 @@ export function ShowQueueTable(props: { embedded?: boolean }) { ); const { data: isCloud } = api.settings.isCloud.useQuery(); const utils = api.useUtils(); - const { mutateAsync: cancelApplicationDeployment, isPending: isCancellingApp } = - api.application.cancelDeployment.useMutation({ - onSuccess: () => void utils.deployment.queueList.invalidate(), - }); - const { mutateAsync: cancelComposeDeployment, isPending: isCancellingCompose } = - api.compose.cancelDeployment.useMutation({ - onSuccess: () => void utils.deployment.queueList.invalidate(), - }); + const { + mutateAsync: cancelApplicationDeployment, + isPending: isCancellingApp, + } = api.application.cancelDeployment.useMutation({ + onSuccess: () => void utils.deployment.queueList.invalidate(), + }); + const { + mutateAsync: cancelComposeDeployment, + isPending: isCancellingCompose, + } = api.compose.cancelDeployment.useMutation({ + onSuccess: () => void utils.deployment.queueList.invalidate(), + }); const isCancelling = isCancellingApp || isCancellingCompose; return ( @@ -149,11 +153,14 @@ export function ShowQueueTable(props: { embedded?: boolean }) { ) : ( - + + — + )} {isCloud && row.state === "active" && - (d?.applicationId != null || d?.composeId != null) && ( + (d?.applicationId != null || + d?.composeId != null) && (