mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SEARCH-480
- Code refactoring
This commit is contained in:
parent
90dbe8980a
commit
d88022d3b5
@ -258,9 +258,7 @@ class Search {
|
|||||||
let sd_time = searchPeriod;
|
let sd_time = searchPeriod;
|
||||||
if (startDate) {
|
if (startDate) {
|
||||||
sd_time = new Date(parseInt(startDate, 10)).getTime();
|
sd_time = new Date(parseInt(startDate, 10)).getTime();
|
||||||
if (!sd_time) {
|
if (!sd_time || sd_time < searchPeriod) {
|
||||||
sd_time = searchPeriod;
|
|
||||||
} else if (sd_time < searchPeriod) {
|
|
||||||
sd_time = searchPeriod;
|
sd_time = searchPeriod;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user