From 2b777e1f1201103b41a951705977b28c1ce4fb85 Mon Sep 17 00:00:00 2001 From: Ricardo M Date: Fri, 5 May 2023 10:54:55 +0200 Subject: [PATCH] fix(stepsService): Pass step's UUID to the getStepNested method Currently, we're passing a whole step into the getStepNested method instead of a string. This is caused because of how the IVizStepNode interface it's defined, turning the whole Step typing into any. Relates to: https://github.com/KaotoIO/kaoto-ui/issues/1725 Relates to: https://github.com/KaotoIO/kaoto-ui/issues/1232 --- src/services/stepsService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/stepsService.ts b/src/services/stepsService.ts index 62021843d..efd0c66d9 100644 --- a/src/services/stepsService.ts +++ b/src/services/stepsService.ts @@ -360,7 +360,7 @@ export class StepsService { async handleInsertStep(targetNode: IVizStepNode | undefined, step: IStepProps) { return fetchStepDetails(step.id).then((newStep) => { if (targetNode?.data.branchInfo) { - const currentStepNested = this.getStepNested(targetNode.data.step); + const currentStepNested = this.getStepNested(targetNode.data.step.UUID); if (currentStepNested) { const stepsCopy = useIntegrationJsonStore.getState().integrationJson.steps.slice();