Skip to content

Commit 433d2f2

Browse files
committed
fix: bridge mutation updates on pipeline changes
1 parent 7024951 commit 433d2f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Bridge/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function Bridge({ data, update, remove, schema, copy, names }) {
5151
mutations = mutations
5252
.slice(0, mutationIndex)
5353
.concat([[]])
54-
.concat(mutations.slice(mutationIndex));
54+
.concat(mutations.slice(mutationIndex + 1));
5555
}
5656

5757
patchState({ workflow, mutations });

src/components/Workflow/Pipeline.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function WorkflowPipeline({ workflow, setWorkflow, setEdit }) {
8787
.concat([jobName])
8888
.concat(workflow.slice(index + 1, workflow.length));
8989

90-
setWorkflow(newWorkflow);
90+
setWorkflow(newWorkflow, index);
9191
},
9292
[workflow]
9393
);

0 commit comments

Comments
 (0)