Skip to content

Commit 6c58a9d

Browse files
committed
remove language
1 parent 44e0a38 commit 6c58a9d

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

src/components/api/searchApi.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@ const pickSearchLanguage = (query: string, uiLanguage?: string | null) => {
2727

2828
export const searchSources = async ({
2929
query,
30-
language = localStorage.getItem(LANGUAGE) || "en",
3130
limit = 10,
3231
skip = 0,
3332
}: SearchCommon) => {
34-
const lang = pickSearchLanguage(query, language);
3533
const { data } = await axiosInstance.get(`/api/v1/search/multilingual`, {
3634
params: {
3735
query,
3836
search_type: "exact",
39-
language: lang,
4037
limit,
4138
skip,
4239
},

src/components/ui/molecules/webuddhist-source/SourceSelectorSheet.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import SourceItem from "./sourceItem";
88
import pechaIcon from "@/assets/icon/pecha_icon.png";
99
import { Pagination } from "@/components/ui/molecules/pagination/Pagination";
1010
import { searchSources } from "@/components/api/searchApi";
11-
import { LANGUAGE } from "@/lib/constant";
1211

1312
interface SourceData {
1413
content: string;
@@ -42,10 +41,8 @@ export const SourceSelectorSheet = ({
4241
pagination.limit,
4342
],
4443
queryFn: () => {
45-
const language = localStorage.getItem(LANGUAGE) || "en";
4644
return searchSources({
4745
query: debouncedSearchFilter,
48-
language,
4946
limit: pagination.limit,
5047
skip,
5148
});

0 commit comments

Comments
 (0)