Adding a subflow to a subflow didn't work (#2740)
This commit is contained in:
parent
d6edaa1ee1
commit
572259998f
3 changed files with 8 additions and 8 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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);
|
||||
}}
|
||||
/>
|
||||
|
|
|
@ -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}
|
||||
/>
|
||||
))}
|
||||
</>
|
||||
|
|
Loading…
Reference in a new issue