This is an automated email from the ASF dual-hosted git repository. riemer pushed a commit to branch fix-pipeline-deletion-cache in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 7706a54f58fc0988258f738411535d47ddd5f2d7 Author: Dominik Riemer <[email protected]> AuthorDate: Mon Aug 12 15:22:16 2024 +0200 fix: Properly delete elements from pipeline cache in editor --- ui/src/app/editor/components/pipeline/pipeline.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }
