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) => 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) => {

View file

@ -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);
}} }}
/> />

View file

@ -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}
/> />
))} ))}
</> </>