Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
fix(stepsService): Pass step's UUID to the getStepNested method
Browse files Browse the repository at this point in the history
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: #1725
Relates to: #1232
  • Loading branch information
lordrip committed May 5, 2023
1 parent d2050dd commit 2b777e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/stepsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2b777e1

Please sign in to comment.