diff --git a/ui/src/app/editor/components/pipeline/pipeline.component.ts b/ui/src/app/editor/components/pipeline/pipeline.component.ts index 1cfdd1c2e0..71843f0692 100644 --- a/ui/src/app/editor/components/pipeline/pipeline.component.ts +++ b/ui/src/app/editor/components/pipeline/pipeline.component.ts @@ -274,9 +274,10 @@ export class PipelineComponent implements OnInit, OnDestroy { handleDeleteOption(pipelineElement: PipelineElementConfig) { this.JsplumbBridge.removeAllEndpoints(pipelineElement.payload.dom); - this.rawPipelineModel = this.rawPipelineModel.filter( - pe => !(pe.payload.dom === pipelineElement.payload.dom), + const index = this.rawPipelineModel.findIndex( + pe => pe.payload.dom === pipelineElement.payload.dom, ); + this.rawPipelineModel.splice(index, 1); if (this.rawPipelineModel.every(pe => pe.settings.disabled)) { this.editorService.makePipelineAssemblyEmpty(true); }