Исправлена ошибка фильтрации суточных рапортов

This commit is contained in:
goodmice 2022-10-31 13:52:33 +05:00
parent c8753378eb
commit 45c63317a2
No known key found for this signature in database
GPG Key ID: 63EA771203189CF1

View File

@ -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 (