diff --git a/frontend/src/constants/route.ts b/frontend/src/constants/route.ts index 96d87881..fb204315 100644 --- a/frontend/src/constants/route.ts +++ b/frontend/src/constants/route.ts @@ -44,7 +44,6 @@ export const ROUTE_RESET_PASSWORD = "/reset-password"; export const ROUTE_CONFIRM_EMAIL = "/users/confirm-email"; export const ROUTE_CHANGE_EMAIL = "/users/change-email"; export const ROUTE_SEARCH = "/search/*"; -export const ROUTE_SEARCH_INDEX = "/search/"; export const ROUTE_VERSION = "/version"; export const ROUTE_SITE = "/sites/:id"; export const ROUTE_SITE_ADD = "/sites/add"; diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx index ab4c2b04..14f9ef5c 100644 --- a/frontend/src/pages/index.tsx +++ b/frontend/src/pages/index.tsx @@ -16,7 +16,6 @@ import { ROUTE_FORGOT_PASSWORD, ROUTE_RESET_PASSWORD, ROUTE_SEARCH, - ROUTE_SEARCH_INDEX, ROUTE_VERSION, ROUTE_SITES, ROUTE_DRAFTS, @@ -63,7 +62,6 @@ const Pages: FC = () => ( } /> } /> } /> - } /> } /> } /> } /> diff --git a/frontend/src/pages/search/Search.tsx b/frontend/src/pages/search/Search.tsx index 4ccf3466..f223c664 100644 --- a/frontend/src/pages/search/Search.tsx +++ b/frontend/src/pages/search/Search.tsx @@ -30,7 +30,7 @@ import { createHref, formatDuration, } from "src/utils"; -import { ROUTE_SEARCH, ROUTE_SEARCH_INDEX } from "src/constants/route"; +import { ROUTE_SEARCH } from "src/constants/route"; type Performer = NonNullable; type Scene = NonNullable; @@ -141,12 +141,9 @@ const Search: FC = () => { () => debounce( (searchTerm: string) => - navigate( - searchTerm - ? createHref(ROUTE_SEARCH, { "*": searchTerm }) - : ROUTE_SEARCH_INDEX, - { replace: true }, - ), + navigate(createHref(ROUTE_SEARCH, { "*": searchTerm }), { + replace: true, + }), 200, ), [navigate],