From 5413a87011ef51b8074a12f820687d074338b924 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Wed, 16 Feb 2022 20:04:43 +0100 Subject: [PATCH] remove child of sub flow instead of flow itself (#2069) fixes: #1963 --- src/authentication/FlowDetails.tsx | 2 +- src/authentication/components/FlowRow.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/authentication/FlowDetails.tsx b/src/authentication/FlowDetails.tsx index 25a0c7ea2a..8c25d926f2 100644 --- a/src/authentication/FlowDetails.tsx +++ b/src/authentication/FlowDetails.tsx @@ -396,7 +396,7 @@ export default function FlowDetails() { addExecution(execution.displayName!, type) } onAddFlow={(flow) => addFlow(execution.displayName!, flow)} - onDelete={() => { + onDelete={(execution) => { setSelectedExecution(execution); toggleDeleteDialog(); }} diff --git a/src/authentication/components/FlowRow.tsx b/src/authentication/components/FlowRow.tsx index 61d2bd04db..68f8b4b2a0 100644 --- a/src/authentication/components/FlowRow.tsx +++ b/src/authentication/components/FlowRow.tsx @@ -35,7 +35,7 @@ type FlowRowProps = { type: AuthenticationProviderRepresentation ) => void; onAddFlow: (flow: Flow) => void; - onDelete: () => void; + onDelete: (execution: ExpandableExecution) => void; }; export const FlowRow = ({ @@ -114,7 +114,7 @@ export const FlowRow = ({ @@ -135,7 +135,7 @@ export const FlowRow = ({ onRowChange={onRowChange} onAddExecution={onAddExecution} onAddFlow={onAddFlow} - onDelete={onDelete} + onDelete={() => onDelete(execution)} /> ))}