diff --git a/apps/dokploy/__test__/drop/drop.test.test.ts b/apps/dokploy/__test__/drop/drop.test.test.ts index 3cfef117..53ab02f2 100644 --- a/apps/dokploy/__test__/drop/drop.test.test.ts +++ b/apps/dokploy/__test__/drop/drop.test.test.ts @@ -30,6 +30,7 @@ const baseApp: ApplicationNested = { appName: "", autoDeploy: true, serverId: "", + registryUrl: "", branch: null, dockerBuildStage: "", project: { diff --git a/apps/dokploy/components/dashboard/settings/destination/add-destination.tsx b/apps/dokploy/components/dashboard/settings/destination/add-destination.tsx index a4486098..836bf025 100644 --- a/apps/dokploy/components/dashboard/settings/destination/add-destination.tsx +++ b/apps/dokploy/components/dashboard/settings/destination/add-destination.tsx @@ -76,7 +76,7 @@ export const AddDestination = () => { const onSubmit = async (data: AddDestination) => { await mutateAsync({ - provider: data.provider, + provider: data.provider || "", accessKey: data.accessKeyId, bucket: data.bucket, endpoint: data.endpoint, @@ -293,7 +293,7 @@ export const AddDestination = () => { isLoading={isLoading} onClick={async () => { await testConnection({ - provider: form.getValues("provider"), + provider: form.getValues("provider") || "", accessKey: form.getValues("accessKeyId"), bucket: form.getValues("bucket"), endpoint: form.getValues("endpoint"), @@ -322,7 +322,7 @@ export const AddDestination = () => { variant="secondary" onClick={async () => { await testConnection({ - provider: form.getValues("provider"), + provider: form.getValues("provider") || "", accessKey: form.getValues("accessKeyId"), bucket: form.getValues("bucket"), endpoint: form.getValues("endpoint"), diff --git a/apps/dokploy/components/dashboard/settings/destination/update-destination.tsx b/apps/dokploy/components/dashboard/settings/destination/update-destination.tsx index 474354ba..aba6accb 100644 --- a/apps/dokploy/components/dashboard/settings/destination/update-destination.tsx +++ b/apps/dokploy/components/dashboard/settings/destination/update-destination.tsx @@ -322,7 +322,7 @@ export const UpdateDestination = ({ destinationId }: Props) => { variant={"secondary"} onClick={async () => { await testConnection({ - provider: form.getValues("provider"), + provider: form.getValues("provider") || "", accessKey: form.getValues("accessKeyId"), bucket: form.getValues("bucket"), endpoint: form.getValues("endpoint"), @@ -349,7 +349,7 @@ export const UpdateDestination = ({ destinationId }: Props) => { variant="secondary" onClick={async () => { await testConnection({ - provider: form.getValues("provider"), + provider: form.getValues("provider") || "", accessKey: form.getValues("accessKeyId"), bucket: form.getValues("bucket"), endpoint: form.getValues("endpoint"),