forked from ddrilling/asb_cloud_front
Исправлена ошибка фильтрации суточных рапортов
This commit is contained in:
parent
c8753378eb
commit
45c63317a2
@ -72,8 +72,7 @@ const DailyReport = memo(() => {
|
||||
|
||||
const filteredData = useMemo(() => {
|
||||
if (!searchDate) return data
|
||||
const endDate = moment(searchDate[1]).add(1, 'd')
|
||||
return data.filter((row) => moment(row.reportDate).isBetween(searchDate[0], endDate, 'ms', '[)'))
|
||||
return data.filter((row) => moment(row.reportDate).isBetween(searchDate[0], searchDate[1], 'day', '[]'))
|
||||
}, [data, searchDate])
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user