You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2020/09/02 13:46:33 UTC

[incubator-streampipes] branch dev updated: [STREAMPIPES-214] Fix pipeline element filter

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/incubator-streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 15894f0  [STREAMPIPES-214] Fix pipeline element filter
15894f0 is described below

commit 15894f0b0d995edfa2878c70fe3e080eae03d56d
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Wed Sep 2 15:45:11 2020 +0200

    [STREAMPIPES-214] Fix pipeline element filter
---
 .../pipeline-element-icon-stand.component.ts                            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand.component.ts b/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand.component.ts
index 44d0962..d068d49 100644
--- a/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand.component.ts
+++ b/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand.component.ts
@@ -99,7 +99,7 @@ export class PipelineElementIconStandComponent implements OnInit {
         return this._activeType === PipelineElementType.DataStream ||
             this._activeType === PipelineElementType.DataSet ?
             this.selectedOptions.some(c => el.category.some(cg => c.type === cg)) :
-            this.selectedOptions.some(c => el.category.some(cg => c.code === cg));
+            this.selectedOptions.some(c => !(el.category) || el.category.length === 0 || el.category.some(cg => c.code === cg));
     }
 
     toggleOption(option) {