Skip to content

Commit

Permalink
frontend working
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetkhanduri committed Jun 18, 2023
1 parent 2962938 commit 592b782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/features/appbar/AppBarView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function AppBarView(){
<Typography variant="h6" color="inherit" sx={{ flexGrow: 1 }}>{info.name}</Typography>
<DateTimeRangePicker
onChange={(range) => {
const [s, e] = Array.isArray(range) && range[1] ? range : [Date.now() - 24*3600*1000, Date.now()];
const [s, e] = (Array.isArray(range) && range[0] && range[1]) ? [range[0], range[1]] : [new Date(Date.now() - 24*3600*1000), new Date()];
dispatch(setDateTimeRange({start: s.getTime(), end: e.getTime()}));
}}
value={[new Date(start), new Date(end)]}
Expand Down

0 comments on commit 592b782

Please sign in to comment.