SEARCH-480

- Code refactoring
This commit is contained in:
Keerthi Niranjan 2017-11-23 18:10:46 +05:30
parent 90dbe8980a
commit d88022d3b5

View File

@ -258,9 +258,7 @@ class Search {
let sd_time = searchPeriod;
if (startDate) {
sd_time = new Date(parseInt(startDate, 10)).getTime();
if (!sd_time) {
sd_time = searchPeriod;
} else if (sd_time < searchPeriod) {
if (!sd_time || sd_time < searchPeriod) {
sd_time = searchPeriod;
}
}