From c5f12927b5ef9747c92de28e45f5dbdca588f6b9 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 06:44:56 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../dashboard/compose/general/actions.tsx | 90 +++++++++---------- 1 file changed, 43 insertions(+), 47 deletions(-) diff --git a/apps/dokploy/components/dashboard/compose/general/actions.tsx b/apps/dokploy/components/dashboard/compose/general/actions.tsx index da650385b..af3e8aced 100644 --- a/apps/dokploy/components/dashboard/compose/general/actions.tsx +++ b/apps/dokploy/components/dashboard/compose/general/actions.tsx @@ -89,55 +89,51 @@ export const ComposeActions = ({ composeId }: Props) => { )} - {canDeploy && - data?.composeType === "docker-compose" && ( - { - await deploy({ - composeId: composeId, - freshVolumes: true, + {canDeploy && data?.composeType === "docker-compose" && ( + { + await deploy({ + composeId: composeId, + freshVolumes: true, + }) + .then(() => { + toast.success("Compose deployed with fresh volumes"); + refetch(); + router.push( + `/dashboard/project/${data?.environment.projectId}/environment/${data?.environmentId}/services/compose/${composeId}?tab=deployments`, + ); }) - .then(() => { - toast.success( - "Compose deployed with fresh volumes", - ); - refetch(); - router.push( - `/dashboard/project/${data?.environment.projectId}/environment/${data?.environmentId}/services/compose/${composeId}?tab=deployments`, - ); - }) - .catch(() => { - toast.error("Error deploying compose"); - }); - }} + .catch(() => { + toast.error("Error deploying compose"); + }); + }} + > + - - - - - - Fresh Volumes - - - - - - Deploy with fresh volumes (removes all persistent - data) - - - - - - - )} + + + + + Fresh Volumes + + + + + + Deploy with fresh volumes (removes all persistent data) + + + + + + + )} {canDeploy && (
- Deploy with fresh volumes (removes all persistent - data) -
+ Deploy with fresh volumes (removes all persistent data) +