Skip to content

Commit

Permalink
Fix incorrect sort option handling in the PagefindUI
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Nov 29, 2023
1 parent 1f8048b commit 4a99277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagefind_ui/default/svelte/ui.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
const search_options = { filters };
if (sort && typeof sort === "object") {
search_options[sort] = sort;
search_options.sort = sort;
}
const results = await pagefind.search(term, search_options);
if (search_id === local_search_id) {
Expand Down

0 comments on commit 4a99277

Please sign in to comment.