This is an automated email from the ASF dual-hosted git repository.
pinal 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 224f6ad ATLAS-4533 : Triggering a third search with basic search
filters does not close the filters window
224f6ad is described below
commit 224f6ade1e438b930432fa1b461332f72dc4ca3c
Author: Farhan Khan <[email protected]>
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 <[email protected]>
---
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) {