Skip to content

Commit

Permalink
fix: clicking back doesn't re query search
Browse files Browse the repository at this point in the history
  • Loading branch information
aamirazad committed Jul 6, 2024
1 parent 5845517 commit 827709c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/document-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ function DocumentViewer(props: { id: number }) {
</div>
<div className="flex flex-shrink-0 flex-col">
<Button
onClick={() => {
onClick={(e) => {
e.preventDefault();
router.back();
}}
>
Expand Down

0 comments on commit 827709c

Please sign in to comment.