Skip to content

Commit

Permalink
clenaup: get_total_pages defaults to false in search playground
Browse files Browse the repository at this point in the history
  • Loading branch information
skeptrunedev committed Jul 23, 2024
1 parent 5029e94 commit e75e5ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontends/search/src/components/SearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ const SearchForm = (props: { search: SearchStore; groupID?: string }) => {
field: "",
},
pageSize: 10,
getTotalPages: true,
getTotalPages: false,
highlightResults: true,
highlightDelimiters: ["?", ".", "!"],
highlightMaxLength: 8,
Expand Down
2 changes: 1 addition & 1 deletion frontends/search/src/hooks/useSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const fromParamsToState = (
(JSON.parse(params.sort_by ?? "{}") as SortByField | SortBySearchType) ??
initalState.sort_by,
pageSize: parseInt(params.pageSize ?? "10"),
getTotalPages: (params.getTotalPages ?? "true") === "true",
getTotalPages: (params.getTotalPages ?? "false") === "true",
highlightResults: (params.highlightResults ?? "true") === "true",
highlightThreshold: parseFloat(params.highlightThreshold ?? "0.8"),
highlightDelimiters:
Expand Down

0 comments on commit e75e5ff

Please sign in to comment.