refactor(web): fix types

This commit is contained in:
Ali BARIN
2022-10-06 17:40:48 +02:00
committed by Faruk AYDIN
parent 0825eb36e4
commit ae76f7100c
30 changed files with 12 additions and 15 deletions

View File

@@ -235,7 +235,7 @@ export default function FlowStep(
>
<ChooseAppAndEventSubstep
expanded={currentSubstep === 0}
substep={{ name: 'Choose app & event', arguments: [] }}
substep={{ key: 'chooAppAndEvent', name: 'Choose app & event', arguments: [] }}
onExpand={() => toggleSubstep(0)}
onCollapse={() => toggleSubstep(0)}
onSubmit={expandNextStep}
@@ -246,11 +246,7 @@ export default function FlowStep(
{substeps?.length > 0 &&
substeps.map(
(
substep: {
name: string;
key: string;
arguments: IField[];
},
substep: ISubstep,
index: number
) => (
<React.Fragment key={`${substep?.name}-${index}`}>
@@ -279,7 +275,7 @@ export default function FlowStep(
/>
)}
{['chooseConnection', 'testStep'].includes(substep.key) ===
{substep.key && ['chooseConnection', 'testStep'].includes(substep.key) ===
false && (
<FlowSubstep
expanded={currentSubstep === index + 1}