Skip to content

Commit

Permalink
[Assistants filter] Fix bug (huggingface#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishig authored Mar 5, 2024
1 parent 5a792a0 commit 21c9b41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/assistants/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
const filterOnName = debounce(async (e: Event) => {
searchDisabled = true;
const value = (e.target as HTMLInputElement).value;
const newUrl = getHref($page.url, { newKeys: { q: value } });
const newUrl = getHref($page.url, {
newKeys: { q: value },
existingKeys: { behaviour: "delete", keys: ["p"] },
});
await goto(newUrl);
setTimeout(async () => {
searchDisabled = false;
Expand Down

0 comments on commit 21c9b41

Please sign in to comment.