From bc440568151c6a214e5485bf70c630e6bf447cda Mon Sep 17 00:00:00 2001 From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Date: Fri, 15 Nov 2024 11:53:22 +1300 Subject: [PATCH] fix(swarm): failed to deploy app template [BE-11385] (#138) --- .../stacks/queries/useCreateStack/createSwarmStackFromGit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/react/common/stacks/queries/useCreateStack/createSwarmStackFromGit.ts b/app/react/common/stacks/queries/useCreateStack/createSwarmStackFromGit.ts index e7cddcff8..c373fd184 100644 --- a/app/react/common/stacks/queries/useCreateStack/createSwarmStackFromGit.ts +++ b/app/react/common/stacks/queries/useCreateStack/createSwarmStackFromGit.ts @@ -52,7 +52,7 @@ export async function createSwarmStackFromGit({ }: SwarmGitRepositoryPayload) { try { const { data } = await axios.post( - buildCreateUrl('standalone', 'repository'), + buildCreateUrl('swarm', 'repository'), payload, { params: { endpointId: environmentId },