From b2c0a685f8a99c729de3299031058d59e54e893d Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Thu, 6 Mar 2025 23:57:39 -0600 Subject: [PATCH] fix(destinations): validate server selection for cloud destinations --- .../dashboard/settings/destination/handle-destinations.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/dokploy/components/dashboard/settings/destination/handle-destinations.tsx b/apps/dokploy/components/dashboard/settings/destination/handle-destinations.tsx index 958802e37..aedf87445 100644 --- a/apps/dokploy/components/dashboard/settings/destination/handle-destinations.tsx +++ b/apps/dokploy/components/dashboard/settings/destination/handle-destinations.tsx @@ -152,6 +152,11 @@ export const HandleDestinations = ({ destinationId }: Props) => { return; } + if (isCloud && !serverId) { + toast.error("Please select a server"); + return; + } + const provider = form.getValues("provider"); const accessKey = form.getValues("accessKeyId"); const secretKey = form.getValues("secretAccessKey");