fix: to date change

This commit is contained in:
efrilm 2025-09-03 12:34:18 +07:00
parent eb38bd7f5c
commit ad48cdebe7

View File

@ -80,7 +80,12 @@ const DashboardOverview = () => {
? new Date(salesData?.date_to).toISOString().split('T')[0]
: new Date().toISOString().split('T')[0]
}
onChange={e => {}}
onChange={e => {
setFilter({
...filter,
date_to: formatDateDDMMYYYY(new Date(e.target.value))
})
}}
size='small'
sx={{
'& .MuiOutlinedInput-root': {