Spaces:
Running
Running
Mishig
commited on
[Assistants filter] Fix bug (#902)
Browse files
src/routes/assistants/+page.svelte
CHANGED
@@ -42,7 +42,10 @@
|
|
42 |
const filterOnName = debounce(async (e: Event) => {
|
43 |
searchDisabled = true;
|
44 |
const value = (e.target as HTMLInputElement).value;
|
45 |
-
const newUrl = getHref($page.url, {
|
|
|
|
|
|
|
46 |
await goto(newUrl);
|
47 |
setTimeout(async () => {
|
48 |
searchDisabled = false;
|
|
|
42 |
const filterOnName = debounce(async (e: Event) => {
|
43 |
searchDisabled = true;
|
44 |
const value = (e.target as HTMLInputElement).value;
|
45 |
+
const newUrl = getHref($page.url, {
|
46 |
+
newKeys: { q: value },
|
47 |
+
existingKeys: { behaviour: "delete", keys: ["p"] },
|
48 |
+
});
|
49 |
await goto(newUrl);
|
50 |
setTimeout(async () => {
|
51 |
searchDisabled = false;
|