This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new e2c731f33d fix: Properly delete elements from pipeline cache in editor
(#3133)
e2c731f33d is described below
commit e2c731f33db4518005003bf028006ca28b7ef316
Author: Dominik Riemer <[email protected]>
AuthorDate: Tue Aug 13 08:18:44 2024 +0200
fix: Properly delete elements from pipeline cache in editor (#3133)
---
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);
}