fix: datetimerange over 7 days
This commit is contained in:
@@ -51,7 +51,7 @@ const resetSearchFields = () => {
|
||||
searchFields.alarmDate = [dayjs().startOf('date').subtract(1, 'week').valueOf(), dayjs().endOf('date').valueOf()];
|
||||
};
|
||||
const onDateChange = (value: [number, number] | null) => {
|
||||
if (!value || value.length !== 2) {
|
||||
if (!value) {
|
||||
return;
|
||||
}
|
||||
const [start, end] = value;
|
||||
|
||||
Reference in New Issue
Block a user