SEARCH-480

- Added a check for date filter
This commit is contained in:
Keerthi Niranjan 2017-11-22 15:35:59 +05:30
parent 38e27bba1f
commit 83d16928e0

View File

@ -265,7 +265,10 @@ class Search {
let ed_time = MAXIMUM_DATE;
if (endDate && endDate !== "") {
ed_time = new Date(parseInt(endDate, 10)).getTime();
let etime = new Date(parseInt(endDate, 10)).getTime();
if (etime) {
ed_time = etime
}
}
if (!_limit && _limit === "" && typeof _limit !== 'number' && Math.round(_limit) !== _limit) {