diff --git a/apps/dokploy/components/dashboard/compose/general/isolated-deployment.tsx b/apps/dokploy/components/dashboard/compose/general/isolated-deployment.tsx index 8ee9c786..29aa3bc0 100644 --- a/apps/dokploy/components/dashboard/compose/general/isolated-deployment.tsx +++ b/apps/dokploy/components/dashboard/compose/general/isolated-deployment.tsx @@ -71,8 +71,8 @@ export const IsolatedDeployment = ({ composeId }: Props) => { isolatedDeployment: formData?.isolatedDeployment || false, }) .then(async (_data) => { - randomizeCompose(); - refetch(); + await randomizeCompose(); + await refetch(); toast.success("Compose updated"); }) .catch(() => { @@ -88,11 +88,7 @@ export const IsolatedDeployment = ({ composeId }: Props) => { .then(async (data) => { await utils.project.all.invalidate(); setCompose(data); - toast.success("Compose Isolated"); }) - .catch(() => { - toast.error("Error isolating the compose"); - }); }; return ( diff --git a/apps/dokploy/components/dashboard/compose/general/randomize-compose.tsx b/apps/dokploy/components/dashboard/compose/general/randomize-compose.tsx index 4cc877fd..46ec61d3 100644 --- a/apps/dokploy/components/dashboard/compose/general/randomize-compose.tsx +++ b/apps/dokploy/components/dashboard/compose/general/randomize-compose.tsx @@ -94,11 +94,7 @@ export const RandomizeCompose = ({ composeId }: Props) => { .then(async (data) => { await utils.project.all.invalidate(); setCompose(data); - toast.success("Compose randomized"); }) - .catch(() => { - toast.error("Error randomizing the compose"); - }); }; return (