mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(destinations): validate server selection for cloud destinations
This commit is contained in:
parent
c14528886d
commit
b2c0a685f8
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user