chore: replace the new field date value coming from the API

This commit is contained in:
Pablo Lara
2024-09-27 11:15:02 +02:00
parent fbb5ede272
commit 2807fc2b8e
+2 -2
View File
@@ -28,9 +28,9 @@ export const CustomDatePicker = () => {
(date: any) => {
const params = new URLSearchParams(searchParams.toString());
if (date) {
params.set("filter[updated_at__lte]", date.toString());
params.set("filter[updated_at]", date.toString());
} else {
params.delete("filter[updated_at__lte]");
params.delete("filter[updated_at]");
}
router.push(`?${params.toString()}`, { scroll: false });
},