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

pinal pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 5dc5593  ATLAS-4533 : Triggering a third search with basic search 
filters does not close the filters window
5dc5593 is described below

commit 5dc5593f07d48be301f96cd77183d02a4bf7d16c
Author: Farhan Khan <farhan.k...@freestoneinfotech.com>
AuthorDate: Tue Jan 18 10:48:41 2022 +0530

    ATLAS-4533 : Triggering a third search with basic search filters does not 
close the filters window
    
    Signed-off-by: Pinal Shah <pinal.s...@freestoneinfotech.com>
    (cherry picked from commit 224f6ade1e438b930432fa1b461332f72dc4ca3c)
---
 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 eb3a515..f15b32e 100644
--- a/dashboardv2/public/js/utils/CommonViewFunction.js
+++ b/dashboardv2/public/js/utils/CommonViewFunction.js
@@ -598,7 +598,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 
'utils/Messages', 'utils/Enum
                             } else {
                                 url[2] = 
Enums.queryBuilderDateRangeUIValueToAPI[_.trim(value)] || value;
                             }
-                        } else if (value.length && type === 'date' && 
formatedDateToLong) {
+                        } else if (value && value.length && type === 'date' && 
formatedDateToLong) {
                             url[2] = Date.parse(value);
                         }
                         if (type) {
diff --git a/dashboardv3/public/js/utils/CommonViewFunction.js 
b/dashboardv3/public/js/utils/CommonViewFunction.js
index 418bc7f..7aacb98 100644
--- a/dashboardv3/public/js/utils/CommonViewFunction.js
+++ b/dashboardv3/public/js/utils/CommonViewFunction.js
@@ -618,7 +618,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 
'utils/Messages', 'utils/Enum
                             } else {
                                 url[2] = 
Enums.queryBuilderDateRangeUIValueToAPI[_.trim(value)] || value;
                             }
-                        } else if (value.length && type === 'date' && 
formatedDateToLong) {
+                        } else if (value && value.length && type === 'date' && 
formatedDateToLong) {
                             url[2] = Date.parse(value);
                         }
                         if (type) {

Reply via email to