no default date if filter params exist
This commit is contained in:
@@ -148,7 +148,10 @@ const handleLoad = async () => {
|
|||||||
delete query["filter"];
|
delete query["filter"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!filterDateRange.value || filterDateRange.value.length === 0) {
|
if (
|
||||||
|
(!filterDateRange.value || filterDateRange.value.length === 0) &&
|
||||||
|
query["filter"].length == 0
|
||||||
|
) {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const startingDate = new Date(now.setDate(now.getDate() - 8));
|
const startingDate = new Date(now.setDate(now.getDate() - 8));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user