Skip to content

Commit 21c9b41

Browse files
author
Mishig
authored
[Assistants filter] Fix bug (#902)
1 parent 5a792a0 commit 21c9b41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/routes/assistants/+page.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
const filterOnName = debounce(async (e: Event) => {
4343
searchDisabled = true;
4444
const value = (e.target as HTMLInputElement).value;
45-
const newUrl = getHref($page.url, { newKeys: { q: value } });
45+
const newUrl = getHref($page.url, {
46+
newKeys: { q: value },
47+
existingKeys: { behaviour: "delete", keys: ["p"] },
48+
});
4649
await goto(newUrl);
4750
setTimeout(async () => {
4851
searchDisabled = false;

0 commit comments

Comments
 (0)