Skip to content

Commit

Permalink
refactor: prevent replace on search
Browse files Browse the repository at this point in the history
  • Loading branch information
divyam234 committed Oct 16, 2024
1 parent e503c84 commit dd5f7f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/routes/_authed/btsearch.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createFileRoute, useNavigate, useRouterState } from "@tanstack/react-router";
import { createFileRoute, useNavigate } from "@tanstack/react-router";
import { useCallback, useState } from "react";
import {
Button,
Expand Down Expand Up @@ -46,7 +46,6 @@ const SearchInput = () => {
navigate({
to: "/btsearch",
search: (prev) => ({ ...prev, q: search }),
replace: true,
});
},
[search],
Expand Down

0 comments on commit dd5f7f1

Please sign in to comment.