mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-4985] Added missing null check when generating query
This commit is contained in:
committed by
Jatin_Chugh
parent
d4de517a03
commit
fd2ee246ba
+4
-2
@@ -195,8 +195,10 @@ export class SearchDateRangeAdvancedTabbedComponent implements SearchWidget, OnI
|
||||
}
|
||||
endDate = endOfToday();
|
||||
} else if (value.dateRangeType === DateRangeType.BETWEEN) {
|
||||
startDate = startOfDay(value.betweenStartDate);
|
||||
endDate = endOfDay(value.betweenEndDate);
|
||||
if (value.betweenStartDate && value.betweenEndDate) {
|
||||
startDate = startOfDay(value.betweenStartDate);
|
||||
endDate = endOfDay(value.betweenEndDate);
|
||||
}
|
||||
}
|
||||
if (startDate && endDate) {
|
||||
query = `${field}:['${formatISO(startDate)}' TO '${formatISO(endDate)}']`;
|
||||
|
||||
Reference in New Issue
Block a user