Skip to content

Commit

Permalink
Fix bug where export didn't start
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed May 6, 2024
1 parent 397f006 commit bc77018
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/src/components/overlay/ExportDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ export default function ExportDialog({
className="flex items-center gap-2"
size="sm"
onClick={() => {
const now = new Date(latestTime * 1000);
let start = 0;
now.setHours(now.getHours() - 1);
start = now.getTime() / 1000;
setRange({
before: latestTime,
after: start,
});
setMode("select");
}}
>
Expand Down

0 comments on commit bc77018

Please sign in to comment.