Adding a subflow to a subflow didn't work (#2740)

This commit is contained in:
Erik Jan de Wit 2022-06-03 15:06:11 +02:00 committed by GitHub
parent d6edaa1ee1
commit 572259998f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -411,7 +411,7 @@ export default function FlowDetails() {
onAddExecution={(execution, type) =>
addExecution(execution.displayName!, type)
}
onAddFlow={(flow) =>
onAddFlow={(execution, flow) =>
addFlow(execution.displayName!, flow)
}
onDelete={(execution) => {

View file

@ -20,7 +20,7 @@ type EditFlowDropdownProps = {
execution: ExpandableExecution,
type: AuthenticationProviderRepresentation
) => void;
onAddFlow: (flow: Flow) => void;
onAddFlow: (execution: ExpandableExecution, flow: Flow) => void;
};
export const EditFlowDropdown = ({
@ -95,7 +95,7 @@ export const EditFlowDropdown = ({
name={execution.displayName!}
onCancel={() => setType(undefined)}
onConfirm={(flow) => {
onAddFlow(flow);
onAddFlow(execution, flow);
setType(undefined);
}}
/>

View file

@ -34,7 +34,7 @@ type FlowRowProps = {
execution: ExpandableExecution,
type: AuthenticationProviderRepresentation
) => void;
onAddFlow: (flow: Flow) => void;
onAddFlow: (execution: ExpandableExecution, flow: Flow) => void;
onDelete: (execution: ExpandableExecution) => void;
};
@ -129,16 +129,16 @@ export const FlowRow = ({
</DataListItem>
{!execution.isCollapsed &&
hasSubList &&
execution.executionList?.map((execution) => (
execution.executionList?.map((ex) => (
<FlowRow
builtIn={builtIn}
key={execution.id}
execution={execution}
key={ex.id}
execution={ex}
onRowClick={onRowClick}
onRowChange={onRowChange}
onAddExecution={onAddExecution}
onAddFlow={onAddFlow}
onDelete={() => onDelete(execution)}
onDelete={onDelete}
/>
))}
</>