Repository: incubator-griffin
Updated Branches:
  refs/heads/master b164bedf1 -> ffdb495d2


[GRIFFIN-177] fix measure page display issue

GRIFFIN-177 - fix measure page display issue

Author: Li, Juan <[email protected]>

Closes #344 from icesmartjuan/bug/measure_display.


Project: http://git-wip-us.apache.org/repos/asf/incubator-griffin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-griffin/commit/ffdb495d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-griffin/tree/ffdb495d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-griffin/diff/ffdb495d

Branch: refs/heads/master
Commit: ffdb495d21396455b50ec0e64918b03a0af6efed
Parents: b164bed
Author: Li, Juan <[email protected]>
Authored: Thu Jul 12 17:22:51 2018 +0800
Committer: Lionel Liu <[email protected]>
Committed: Thu Jul 12 17:22:51 2018 +0800

----------------------------------------------------------------------
 ui/angular/src/app/measure/measure.component.ts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/ffdb495d/ui/angular/src/app/measure/measure.component.ts
----------------------------------------------------------------------
diff --git a/ui/angular/src/app/measure/measure.component.ts 
b/ui/angular/src/app/measure/measure.component.ts
index 936742a..19ea70f 100644
--- a/ui/angular/src/app/measure/measure.component.ts
+++ b/ui/angular/src/app/measure/measure.component.ts
@@ -118,6 +118,10 @@ export class MeasureComponent implements OnInit {
         if (measure["measure.type"] === "external") {
           measure["dq.type"] = "external";
         }
+        //FIXME if needed avoiding null, for calling string.toLowerCase() in 
html <td>{{row["dq.type"].toLowerCase()}}</td>
+        if (!!!measure["dq.type"]) {
+          measure["dq.type"] = "unknown";
+        }
         return measure;
       });
       // this.results = Object.assign([],trans).reverse();
@@ -126,4 +130,4 @@ export class MeasureComponent implements OnInit {
       });
     });
   }
-}
\ No newline at end of file
+}

Reply via email to