Skip to content

Commit

Permalink
[Assistants filter] Fix bug (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed 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
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.