This is an automated email from the ASF dual-hosted git repository.

kbhatt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 61b7a07  ATLAS-3925: UI: (Regression) Properties with value Null not 
showing N/A #2
61b7a07 is described below

commit 61b7a077bc541aad27ceadb8c55b4d568b376e3c
Author: kevalbhatt <[email protected]>
AuthorDate: Thu Sep 3 18:35:13 2020 +0530

    ATLAS-3925: UI: (Regression) Properties with value Null not showing N/A #2
---
 dashboardv2/public/js/utils/CommonViewFunction.js | 2 +-
 dashboardv3/public/js/utils/CommonViewFunction.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dashboardv2/public/js/utils/CommonViewFunction.js 
b/dashboardv2/public/js/utils/CommonViewFunction.js
index 23a40df..041f1f6 100644
--- a/dashboardv2/public/js/utils/CommonViewFunction.js
+++ b/dashboardv2/public/js/utils/CommonViewFunction.js
@@ -102,7 +102,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 
'utils/Messages', 'utils/Enum
                 }
             },
             getValue = function(val) {
-                if (!_.isUndefined(val)) {
+                if (!_.isUndefined(val) && !_.isNull(val)) {
                     if ((_.isNumber(val) || !_.isNaN(parseInt(val))) && 
formatIntVal) {
                         return numberFormat(val);
                     } else {
diff --git a/dashboardv3/public/js/utils/CommonViewFunction.js 
b/dashboardv3/public/js/utils/CommonViewFunction.js
index c4e11a6..0621277 100644
--- a/dashboardv3/public/js/utils/CommonViewFunction.js
+++ b/dashboardv3/public/js/utils/CommonViewFunction.js
@@ -102,7 +102,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 
'utils/Messages', 'utils/Enum
                 }
             },
             getValue = function(val) {
-                if (!_.isUndefined(val)) {
+                if (!_.isUndefined(val) && !_.isNull(val)) {
                     if ((_.isNumber(val) || !_.isNaN(parseInt(val))) && 
formatIntVal) {
                         return numberFormat(val);
                     } else {

Reply via email to