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) =>
|
onAddExecution={(execution, type) =>
|
||||||
addExecution(execution.displayName!, type)
|
addExecution(execution.displayName!, type)
|
||||||
}
|
}
|
||||||
onAddFlow={(flow) =>
|
onAddFlow={(execution, flow) =>
|
||||||
addFlow(execution.displayName!, flow)
|
addFlow(execution.displayName!, flow)
|
||||||
}
|
}
|
||||||
onDelete={(execution) => {
|
onDelete={(execution) => {
|
||||||
|
|
|
@ -20,7 +20,7 @@ type EditFlowDropdownProps = {
|
||||||
execution: ExpandableExecution,
|
execution: ExpandableExecution,
|
||||||
type: AuthenticationProviderRepresentation
|
type: AuthenticationProviderRepresentation
|
||||||
) => void;
|
) => void;
|
||||||
onAddFlow: (flow: Flow) => void;
|
onAddFlow: (execution: ExpandableExecution, flow: Flow) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const EditFlowDropdown = ({
|
export const EditFlowDropdown = ({
|
||||||
|
@ -95,7 +95,7 @@ export const EditFlowDropdown = ({
|
||||||
name={execution.displayName!}
|
name={execution.displayName!}
|
||||||
onCancel={() => setType(undefined)}
|
onCancel={() => setType(undefined)}
|
||||||
onConfirm={(flow) => {
|
onConfirm={(flow) => {
|
||||||
onAddFlow(flow);
|
onAddFlow(execution, flow);
|
||||||
setType(undefined);
|
setType(undefined);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -34,7 +34,7 @@ type FlowRowProps = {
|
||||||
execution: ExpandableExecution,
|
execution: ExpandableExecution,
|
||||||
type: AuthenticationProviderRepresentation
|
type: AuthenticationProviderRepresentation
|
||||||
) => void;
|
) => void;
|
||||||
onAddFlow: (flow: Flow) => void;
|
onAddFlow: (execution: ExpandableExecution, flow: Flow) => void;
|
||||||
onDelete: (execution: ExpandableExecution) => void;
|
onDelete: (execution: ExpandableExecution) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -129,16 +129,16 @@ export const FlowRow = ({
|
||||||
</DataListItem>
|
</DataListItem>
|
||||||
{!execution.isCollapsed &&
|
{!execution.isCollapsed &&
|
||||||
hasSubList &&
|
hasSubList &&
|
||||||
execution.executionList?.map((execution) => (
|
execution.executionList?.map((ex) => (
|
||||||
<FlowRow
|
<FlowRow
|
||||||
builtIn={builtIn}
|
builtIn={builtIn}
|
||||||
key={execution.id}
|
key={ex.id}
|
||||||
execution={execution}
|
execution={ex}
|
||||||
onRowClick={onRowClick}
|
onRowClick={onRowClick}
|
||||||
onRowChange={onRowChange}
|
onRowChange={onRowChange}
|
||||||
onAddExecution={onAddExecution}
|
onAddExecution={onAddExecution}
|
||||||
onAddFlow={onAddFlow}
|
onAddFlow={onAddFlow}
|
||||||
onDelete={() => onDelete(execution)}
|
onDelete={onDelete}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in a new issue