From 02ffc1fb88d14a92f0f845ce2b45fa83768d3aeb Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Wed, 25 Aug 2021 14:33:57 +0200 Subject: [PATCH] fixed flow name (#1049) fixes: #1045 --- src/authentication/DuplicateFlowModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authentication/DuplicateFlowModal.tsx b/src/authentication/DuplicateFlowModal.tsx index f59bcc5c24..60c14be0ba 100644 --- a/src/authentication/DuplicateFlowModal.tsx +++ b/src/authentication/DuplicateFlowModal.tsx @@ -46,12 +46,12 @@ export const DuplicateFlowModal = ({ try { await adminClient.authenticationManagement.copyFlow({ flow: name, - newName: form.name, + newName: form.alias, }); if (form.description !== description) { const newFlow = ( await adminClient.authenticationManagement.getFlows() - ).find((flow) => flow.alias === form.name)!; + ).find((flow) => flow.alias === form.alias)!; newFlow.description = form.description; await adminClient.authenticationManagement.updateFlow(