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

commit 4b6e64b38a1e1d026f95bc64c42ba08412907983
Author: Dominik Riemer <[email protected]>
AuthorDate: Mon Oct 26 21:55:40 2020 +0100

    [hotfix] Fix bug in static mapping property renderer
---
 ui/src/app/core-ui/static-properties/filter/display-recommended.pipe.ts | 2 +-
 .../static-mapping-unary/static-mapping-unary.component.ts              | 2 --
 ui/src/app/core-ui/static-properties/static-mapping/static-mapping.ts   | 1 +
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/ui/src/app/core-ui/static-properties/filter/display-recommended.pipe.ts 
b/ui/src/app/core-ui/static-properties/filter/display-recommended.pipe.ts
index cd56b3d..78695f3 100644
--- a/ui/src/app/core-ui/static-properties/filter/display-recommended.pipe.ts
+++ b/ui/src/app/core-ui/static-properties/filter/display-recommended.pipe.ts
@@ -30,7 +30,7 @@ export class DisplayRecommendedPipe implements PipeTransform {
         return properties;
       } else {
         properties.forEach(property => {
-          if (property.propertyScope === undefined || property.propertyScope 
=== propertyScope) {
+          if (!(property.propertyScope) || property.propertyScope === 
propertyScope) {
             result.push(property);
           }
         });
diff --git 
a/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts
 
b/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts
index 9500097..db6bd64 100644
--- 
a/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts
+++ 
b/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts
@@ -43,9 +43,7 @@ export class StaticMappingUnaryComponent extends 
StaticMappingComponent<MappingP
         this.availableProperties = this.extractPossibleSelections();
         this.availableProperties
             .forEach(ep => ep.propertySelector = 
this.firstStreamPropertySelector + ep.runtimeName);
-        console.log(this.staticProperty.selectedProperty);
         if (!(this.staticProperty.selectedProperty)) {
-            console.log("setting property");
             this.staticProperty.selectedProperty = 
this.availableProperties[0].propertySelector;
             this.emitUpdate(true);
         }
diff --git 
a/ui/src/app/core-ui/static-properties/static-mapping/static-mapping.ts 
b/ui/src/app/core-ui/static-properties/static-mapping/static-mapping.ts
index f237a57..7207b35 100644
--- a/ui/src/app/core-ui/static-properties/static-mapping/static-mapping.ts
+++ b/ui/src/app/core-ui/static-properties/static-mapping/static-mapping.ts
@@ -57,6 +57,7 @@ export abstract class StaticMappingComponent<T extends 
MappingProperty>
                 .filter(ep => this.isInSelection(ep))
                 .map(ep => this.cloneEp(ep)));
         });
+        console.log(properties);
         return properties;
     }
 

Reply via email to